add a ruby method
including source ast and args, later locals
This commit is contained in:
parent
9e89306733
commit
a70d20d63e
12
lib/melon/compiler/ruby_method.rb
Normal file
12
lib/melon/compiler/ruby_method.rb
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
module Melon
|
||||||
|
|
||||||
|
class RubyMethod
|
||||||
|
|
||||||
|
attr_reader :name , :args_type , :body
|
||||||
|
|
||||||
|
def initialize(name , args_type , body )
|
||||||
|
@name , @args_type , @body = name , args_type , body
|
||||||
|
end
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
Loading…
x
Reference in New Issue
Block a user