Class: Kapusta::Compiler::Language::ConditionalBodyForm
- Inherits:
-
Struct
- Object
- Struct
- Kapusta::Compiler::Language::ConditionalBodyForm
- Defined in:
- lib/kapusta/compiler/language.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
Returns the value of attribute body.
-
#condition ⇒ Object
Returns the value of attribute condition.
Instance Method Summary collapse
Instance Attribute Details
#body ⇒ Object
Returns the value of attribute body
23 24 25 |
# File 'lib/kapusta/compiler/language.rb', line 23 def body @body end |
#condition ⇒ Object
Returns the value of attribute condition
23 24 25 |
# File 'lib/kapusta/compiler/language.rb', line 23 def condition @condition end |
Instance Method Details
#body? ⇒ Boolean
24 |
# File 'lib/kapusta/compiler/language.rb', line 24 def body? = !body.empty? |