add a ruby method
including source ast and args, later locals
This commit is contained in:
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
|
Reference in New Issue
Block a user