Class: Bashir::Function
- Inherits:
-
Object
- Object
- Bashir::Function
- 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 |
#name ⇒ Object
30 |
# File 'lib/bashir/function.rb', line 30 def name; "#@name" end |