Module: Roast::Helpers::MetadataAccess
- Included in:
- Tools::CodingAgent
- Defined in:
- lib/roast/helpers/metadata_access.rb
Instance Method Summary collapse
Instance Method Details
#set_current_step_metadata(key, value) ⇒ Object
14 15 16 17 18 19 20 21 22 |
# File 'lib/roast/helpers/metadata_access.rb', line 14 def (key, value) step_name = current_step_name = return unless step_name && [step_name] ||= {} [step_name][key] = value end |
#step_metadata(step_name = nil) ⇒ Object
6 7 8 9 10 11 12 |
# File 'lib/roast/helpers/metadata_access.rb', line 6 def (step_name = nil) step_name ||= current_step_name return {} unless step_name = || {} [step_name] || {} end |