Class: Sod::Prefabs::Actions::Version
- Defined in:
- lib/sod/prefabs/actions/version.rb
Overview
Provides a generic version action for use in upstream applications.
Instance Attribute Summary
Attributes inherited from Action
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(label = nil) ⇒ Version
constructor
A new instance of Version.
Methods inherited from Action
ancillary, default, description, inherited, #inspect, on, #to_proc
Constructor Details
#initialize(label = nil) ⇒ Version
Returns a new instance of Version.
14 15 16 17 |
# File 'lib/sod/prefabs/actions/version.rb', line 14 def initialize(label = nil, **) super(**) @label = context[label, :version_label] end |
Instance Method Details
#call ⇒ Object
19 |
# File 'lib/sod/prefabs/actions/version.rb', line 19 def call(*) = io.puts label |