Class: Fastlane::Helper::MetadataBlock

Inherits:
Object
  • Object
show all
Defined in:
lib/fastlane/plugin/wpmreleasetoolkit/helper/metadata/metadata_block.rb

Overview

Basic line handler

Direct Known Subclasses

StandardMetadataBlock, UnknownMetadataBlock

Instance Attribute Summary collapse

Instance Method Summary collapse

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_keyObject (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