Class: ConvenientService::Examples::Standard::V1::Gemfile::Services::ParseContent
- Inherits:
-
Object
- Object
- ConvenientService::Examples::Standard::V1::Gemfile::Services::ParseContent
- Includes:
- Service::Configs::Standard::V1
- Defined in:
- lib/convenient_service/examples/standard/v1/gemfile/services/parse_content.rb
Constant Summary collapse
- RUBY_REGEX =
/\A\s*ruby/
- SOURCE_REGEX =
/\A\s*source/
- GIT_SOURCE_REGEX =
/\A\s*git_source/
- GROUP_REGEX =
/\A\s*group/
- GEM_REGEX =
/\A\s*gem/
- BLOCK_END_REGEX =
/\A\s*end/
- ENV_SCAN_REGEX =
/:(\w+)/
Instance Attribute Summary collapse
-
#content ⇒ Object
readonly
Returns the value of attribute content.
Instance Method Summary collapse
-
#initialize(content:) ⇒ ParseContent
constructor
A new instance of ParseContent.
- #result ⇒ Object
Constructor Details
#initialize(content:) ⇒ ParseContent
Returns a new instance of ParseContent.
50 51 52 |
# File 'lib/convenient_service/examples/standard/v1/gemfile/services/parse_content.rb', line 50 def initialize(content:) @content = content end |
Instance Attribute Details
#content ⇒ Object (readonly)
Returns the value of attribute content.
44 45 46 |
# File 'lib/convenient_service/examples/standard/v1/gemfile/services/parse_content.rb', line 44 def content @content end |
Instance Method Details
#result ⇒ Object
54 55 56 |
# File 'lib/convenient_service/examples/standard/v1/gemfile/services/parse_content.rb', line 54 def result success(data: {parsed_content: parse_content}) end |