Class: RubyRTL::Elsif

Inherits:
Statement show all
Defined in:
lib/ruby_rtl/ast.rb

Instance Attribute Summary collapse

Attributes inherited from Ast

#comments

Instance Method Summary collapse

Methods inherited from Ast

#accept

Constructor Details

#initialize(cond, body = nil) ⇒ Elsif

Returns a new instance of Elsif.



137
138
139
# File 'lib/ruby_rtl/ast.rb', line 137

def initialize cond, body=nil
  @cond,@body=cond,body
end

Instance Attribute Details

#bodyObject

Returns the value of attribute body.



136
137
138
# File 'lib/ruby_rtl/ast.rb', line 136

def body
  @body
end

#condObject

Returns the value of attribute cond.



136
137
138
# File 'lib/ruby_rtl/ast.rb', line 136

def cond
  @cond
end