Class: Bashir::Function

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

Instance Method Summary collapse

Instance Method Details

#as_bash(indent = nil) ⇒ Object



25
26
27
28
29
# File 'lib/bashir/function.rb', line 25

def as_bash indent=nil
  %<function #{@name}
{
> + body_as_bash + %<}>
end

#nameObject



30
# File 'lib/bashir/function.rb', line 30

def name; "#@name" end