Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
vito committed Dec 30, 2012
1 parent f8b1de2 commit 08c8187
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions lib/atomy/ast/internal/define_pattern.rb
Expand Up @@ -8,19 +8,14 @@ class DefinePattern < Block
attributes :module_name attributes :module_name


def pattern_definer def pattern_definer
Atomy::AST::DefineMethod.new( DefineMethod.new(
:line => 0,
:body => @body, :body => @body,
:receiver => Atomy::AST::Block.new( :receiver => Block.new(
:line => 0, :contents => [Primitive.new(:value => :self)]),
:contents => [Atomy::AST::Primitive.new(:line => 0, :value => :self)]),
:arguments => [ :arguments => [
Atomy::AST::Compose.new( Compose.new(
:line => 0, :left => Word.new(:text => :node),
:left => Atomy::AST::Word.new(:line => 0, :text => :node), :right => Block.new(:contents => [@pattern])),
:right => Atomy::AST::Block.new(
:line => 0,
:contents => [@pattern])),
@module_name @module_name
], ],
:name => :_pattern, :name => :_pattern,
Expand Down

0 comments on commit 08c8187

Please sign in to comment.