From a70d20d63ea5daa13c614f76d7663e836353f46a Mon Sep 17 00:00:00 2001 From: Torsten Ruger Date: Tue, 20 Dec 2016 20:02:20 +0200 Subject: [PATCH] add a ruby method including source ast and args, later locals --- lib/melon/compiler/ruby_method.rb | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 lib/melon/compiler/ruby_method.rb diff --git a/lib/melon/compiler/ruby_method.rb b/lib/melon/compiler/ruby_method.rb new file mode 100644 index 00000000..14efe12b --- /dev/null +++ b/lib/melon/compiler/ruby_method.rb @@ -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