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

Inherits:
Object
  • Object
show all
Includes:
RailsService::Config
Defined in:
lib/convenient_service/examples/rails/v1/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.



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

attribute :parsed_content

#resultObject



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

def result
  success(formatted_content: format_content)
end