Class: Gearhead::Extensions::CustomActions::CustomAction
- Inherits:
-
Object
- Object
- Gearhead::Extensions::CustomActions::CustomAction
- Defined in:
- lib/gearhead/extensions/custom_actions.rb
Instance Attribute Summary collapse
-
#block ⇒ Object
readonly
Returns the value of attribute block.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#verbs ⇒ Object
readonly
Returns the value of attribute verbs.
Instance Method Summary collapse
-
#initialize(name, verbs, &block) ⇒ CustomAction
constructor
A new instance of CustomAction.
Constructor Details
#initialize(name, verbs, &block) ⇒ CustomAction
Returns a new instance of CustomAction.
11 12 13 14 15 |
# File 'lib/gearhead/extensions/custom_actions.rb', line 11 def initialize(name, verbs, &block) @name = name @verbs = verbs @block = block end |
Instance Attribute Details
#block ⇒ Object (readonly)
Returns the value of attribute block.
10 11 12 |
# File 'lib/gearhead/extensions/custom_actions.rb', line 10 def block @block end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
10 11 12 |
# File 'lib/gearhead/extensions/custom_actions.rb', line 10 def name @name end |
#verbs ⇒ Object (readonly)
Returns the value of attribute verbs.
10 11 12 |
# File 'lib/gearhead/extensions/custom_actions.rb', line 10 def verbs @verbs end |