Class: Meathook::Hook
- Inherits:
-
Object
- Object
- Meathook::Hook
- Defined in:
- lib/meathook/hook.rb
Instance Attribute Summary collapse
-
#commands ⇒ Object
Returns the value of attribute commands.
-
#data ⇒ Object
Returns the value of attribute data.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
- #each_command(&block) ⇒ Object
-
#initialize(hn, d) ⇒ Hook
constructor
A new instance of Hook.
Constructor Details
Instance Attribute Details
#commands ⇒ Object
Returns the value of attribute commands.
3 4 5 |
# File 'lib/meathook/hook.rb', line 3 def commands @commands end |
#data ⇒ Object
Returns the value of attribute data.
3 4 5 |
# File 'lib/meathook/hook.rb', line 3 def data @data end |
#name ⇒ Object
Returns the value of attribute name.
3 4 5 |
# File 'lib/meathook/hook.rb', line 3 def name @name end |
Instance Method Details
#each_command(&block) ⇒ Object
15 16 17 |
# File 'lib/meathook/hook.rb', line 15 def each_command(&block) self.commands.each{|c| yield c} end |