Class: Aster::Function

Inherits:
Object
  • Object
show all
Defined in:
lib/aster/function.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#argumentsObject (readonly)

Returns the value of attribute arguments.



3
4
5
# File 'lib/aster/function.rb', line 3

def arguments
  @arguments
end

#blockObject (readonly)

Returns the value of attribute block.



3
4
5
# File 'lib/aster/function.rb', line 3

def block
  @block
end

#commandsObject (readonly)

Returns the value of attribute commands.



3
4
5
# File 'lib/aster/function.rb', line 3

def commands
  @commands
end