Class: Fastlane::Actions::YamlReader

Inherits:
Object
  • Object
show all
Defined in:
lib/fastlane/plugin/flutter_version_manager/actions/flutter_version_manager_action.rb

Instance Method Summary collapse

Constructor Details

#initialize(yaml_path) ⇒ YamlReader

Returns a new instance of YamlReader.



67
68
69
# File 'lib/fastlane/plugin/flutter_version_manager/actions/flutter_version_manager_action.rb', line 67

def initialize(yaml_path)
  @yamlFile = YAML.load_file(yaml_path)
end

Instance Method Details

#allObject



75
76
77
# File 'lib/fastlane/plugin/flutter_version_manager/actions/flutter_version_manager_action.rb', line 75

def all
  @yamlFile
end

#field(fieldName) ⇒ Object



71
72
73
# File 'lib/fastlane/plugin/flutter_version_manager/actions/flutter_version_manager_action.rb', line 71

def field(fieldName)
  @yamlFile[fieldName]
end