Class: Function

Inherits:
Object
  • Object
show all
Defined in:
lib/naksh/syntax/bash/dhaka/evaluator.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(args, body) ⇒ Function

Returns a new instance of Function.



349
350
351
352
# File 'lib/naksh/syntax/bash/dhaka/evaluator.rb', line 349

def initialize(args, body)
  @args = args
  @body = body
end

Instance Attribute Details

#argsObject (readonly)

Returns the value of attribute args.



348
349
350
# File 'lib/naksh/syntax/bash/dhaka/evaluator.rb', line 348

def args
  @args
end

#bodyObject (readonly)

Returns the value of attribute body.



348
349
350
# File 'lib/naksh/syntax/bash/dhaka/evaluator.rb', line 348

def body
  @body
end