small cleanup
This commit is contained in:
parent
bc0b71d0cd
commit
488af5b8f7
@ -190,8 +190,9 @@ module Vool
|
|||||||
private
|
private
|
||||||
|
|
||||||
def simplify_condition( cond )
|
def simplify_condition( cond )
|
||||||
return unless cond.condition.is_a?(ScopeStatement)
|
condition = cond.condition
|
||||||
cond.condition = cond.condition.first if cond.condition.single?
|
return unless condition.is_a?(ScopeStatement)
|
||||||
|
cond.condition = condition.first if condition.single?
|
||||||
end
|
end
|
||||||
|
|
||||||
def instance_name sym
|
def instance_name sym
|
||||||
|
@ -13,6 +13,9 @@ module Vool
|
|||||||
def first
|
def first
|
||||||
@statements.first
|
@statements.first
|
||||||
end
|
end
|
||||||
|
def length
|
||||||
|
@statements.length
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class ScopeStatement < Statements
|
class ScopeStatement < Statements
|
||||||
|
Loading…
Reference in New Issue
Block a user