Class: Aster::Function
- Inherits:
-
Object
- Object
- Aster::Function
- Defined in:
- lib/aster/function.rb
Instance Attribute Summary collapse
-
#arguments ⇒ Object
readonly
Returns the value of attribute arguments.
-
#block ⇒ Object
readonly
Returns the value of attribute block.
-
#commands ⇒ Object
readonly
Returns the value of attribute commands.
Instance Method Summary collapse
-
#initialize(args, commands, &block) ⇒ Function
constructor
A new instance of Function.
Constructor Details
#initialize(args, commands, &block) ⇒ Function
Returns a new instance of Function.
4 5 6 7 8 |
# File 'lib/aster/function.rb', line 4 def initialize(args, commands, &block) @arguments = args @commands = commands @block = block end |
Instance Attribute Details
#arguments ⇒ Object (readonly)
Returns the value of attribute arguments.
3 4 5 |
# File 'lib/aster/function.rb', line 3 def arguments @arguments end |
#block ⇒ Object (readonly)
Returns the value of attribute block.
3 4 5 |
# File 'lib/aster/function.rb', line 3 def block @block end |
#commands ⇒ Object (readonly)
Returns the value of attribute commands.
3 4 5 |
# File 'lib/aster/function.rb', line 3 def commands @commands end |