Class: ConvenientService::Examples::Standard::Gemfile::Services::FormatGemsWithEnvs

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

Constant Summary collapse

BLOCK_END =
"end"
BLOCK_DO =
"do"
COMMA_WITH_SPACE =
", "
EMPTY_LINE =
""
ENTER =
"\n"
GROUP =
"group"
SPACE =
" "
TAB =
"  "

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(parsed_content:) ⇒ FormatGemsWithEnvs

Returns a new instance of FormatGemsWithEnvs.



50
51
52
# File 'lib/convenient_service/examples/standard/gemfile/services/format_gems_with_envs.rb', line 50

def initialize(parsed_content:)
  @parsed_content = parsed_content
end

Instance Attribute Details

#parsed_contentObject (readonly)

Returns the value of attribute parsed_content.



48
49
50
# File 'lib/convenient_service/examples/standard/gemfile/services/format_gems_with_envs.rb', line 48

def parsed_content
  @parsed_content
end

Instance Method Details

#resultObject



54
55
56
# File 'lib/convenient_service/examples/standard/gemfile/services/format_gems_with_envs.rb', line 54

def result
  success(formatted_content: format_content)
end