Class: Fastlane::Helper::MetadataBlock
- Inherits:
-
Object
- Object
- Fastlane::Helper::MetadataBlock
- Defined in:
- lib/fastlane/plugin/wpmreleasetoolkit/helper/metadata/metadata_block.rb
Overview
Basic line handler
Direct Known Subclasses
Instance Attribute Summary collapse
-
#block_key ⇒ Object
readonly
Returns the value of attribute block_key.
Instance Method Summary collapse
- #handle_line(file, line) ⇒ Object
-
#initialize(block_key) ⇒ MetadataBlock
constructor
A new instance of MetadataBlock.
- #is_handler_for(key) ⇒ Object
Constructor Details
#initialize(block_key) ⇒ MetadataBlock
Returns a new instance of MetadataBlock.
9 10 11 |
# File 'lib/fastlane/plugin/wpmreleasetoolkit/helper/metadata/metadata_block.rb', line 9 def initialize(block_key) @block_key = block_key end |
Instance Attribute Details
#block_key ⇒ Object (readonly)
Returns the value of attribute block_key.
7 8 9 |
# File 'lib/fastlane/plugin/wpmreleasetoolkit/helper/metadata/metadata_block.rb', line 7 def block_key @block_key end |
Instance Method Details
#handle_line(file, line) ⇒ Object
13 14 15 |
# File 'lib/fastlane/plugin/wpmreleasetoolkit/helper/metadata/metadata_block.rb', line 13 def handle_line(file, line) file.puts(line) # Standard line handling: just copy end |
#is_handler_for(key) ⇒ Object
17 18 19 |
# File 'lib/fastlane/plugin/wpmreleasetoolkit/helper/metadata/metadata_block.rb', line 17 def is_handler_for(key) true end |