add to_s for statements
This commit is contained in:
@ -35,6 +35,11 @@ module Vool
|
||||
Parfait::NamedList.type_for( type_hash )
|
||||
end
|
||||
|
||||
def to_s(depth = 0)
|
||||
arg_str = @args.collect{|a| a.to_s}.join(', ')
|
||||
at_depth(depth , "def #{name}(#{arg_str})" , @body.to_s(depth + 1) , "end")
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def make_frame
|
||||
|
Reference in New Issue
Block a user