Class: ConvenientService::Examples::Rails::Gemfile::Services::FormatHeader

Inherits:
Object
  • Object
show all
Includes:
RailsService::Config
Defined in:
lib/convenient_service/examples/rails/gemfile/services/format_header.rb

Constant Summary collapse

FROZEN_STRING_LITERAL =
"# frozen_string_literal: true"
EMPTY_LINE =
""
ENTER =
"\n"

Instance Method Summary collapse

Instance Method Details

#parsed_contentObject

NOTE: attribute has no hash type. https://github.com/rails/rails/blob/v7.0.4/activemodel/lib/active_model/type.rb#L42

TODO: Implement custom types.



41
# File 'lib/convenient_service/examples/rails/gemfile/services/format_header.rb', line 41

attribute :parsed_content

#resultObject



44
45
46
# File 'lib/convenient_service/examples/rails/gemfile/services/format_header.rb', line 44

def result
  success(formatted_content: format_content)
end