Class: ConvenientService::Examples::Standard::V1::Gemfile::Services::FormatGemsWithoutEnvs

Inherits:
Object
  • Object
show all
Includes:
Service::Configs::Standard::V1
Defined in:
lib/convenient_service/examples/standard/v1/gemfile/services/format_gems_without_envs.rb

Constant Summary collapse

EMPTY_LINE =
""
ENTER =
"\n"

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(parsed_content:) ⇒ FormatGemsWithoutEnvs

Returns a new instance of FormatGemsWithoutEnvs.



49
50
51
# File 'lib/convenient_service/examples/standard/v1/gemfile/services/format_gems_without_envs.rb', line 49

def initialize(parsed_content:)
  @parsed_content = parsed_content
end

Instance Attribute Details

#parsed_contentObject (readonly)

Returns the value of attribute parsed_content.



47
48
49
# File 'lib/convenient_service/examples/standard/v1/gemfile/services/format_gems_without_envs.rb', line 47

def parsed_content
  @parsed_content
end

Instance Method Details

#resultObject



53
54
55
# File 'lib/convenient_service/examples/standard/v1/gemfile/services/format_gems_without_envs.rb', line 53

def result
  success(formatted_content: format_content)
end