Class: Sod::Prefabs::Actions::Version

Inherits:
Action
  • Object
show all
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

#record

Instance Method Summary collapse

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

#callObject



19
# File 'lib/sod/prefabs/actions/version.rb', line 19

def call(*) = io.puts label