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.
7 8 9 |
# File 'lib/fastlane/plugin/wpmreleasetoolkit/helper/metadata/metadata_block.rb', line 7 def initialize(block_key) @block_key = block_key end |
Instance Attribute Details
#block_key ⇒ Object (readonly)
Returns the value of attribute block_key.
5 6 7 |
# File 'lib/fastlane/plugin/wpmreleasetoolkit/helper/metadata/metadata_block.rb', line 5 def block_key @block_key end |
Instance Method Details
#handle_line(file, line) ⇒ Object
11 12 13 |
# File 'lib/fastlane/plugin/wpmreleasetoolkit/helper/metadata/metadata_block.rb', line 11 def handle_line(file, line) file.puts(line) # Standard line handling: just copy end |
#is_handler_for(key) ⇒ Object
15 16 17 |
# File 'lib/fastlane/plugin/wpmreleasetoolkit/helper/metadata/metadata_block.rb', line 15 def is_handler_for(key) true end |