Permalink
Browse files

cleanup

  • Loading branch information...
1 parent f8b1de2 commit 08c81877833dbf369f3f8484f626bc9b0c612a7a @vito committed Dec 30, 2012
Showing with 6 additions and 11 deletions.
  1. +6 −11 lib/atomy/ast/internal/define_pattern.rb
@@ -8,19 +8,14 @@ class DefinePattern < Block
attributes :module_name
def pattern_definer
- Atomy::AST::DefineMethod.new(
- :line => 0,
+ DefineMethod.new(
:body => @body,
- :receiver => Atomy::AST::Block.new(
- :line => 0,
- :contents => [Atomy::AST::Primitive.new(:line => 0, :value => :self)]),
+ :receiver => Block.new(
+ :contents => [Primitive.new(:value => :self)]),
:arguments => [
- Atomy::AST::Compose.new(
- :line => 0,
- :left => Atomy::AST::Word.new(:line => 0, :text => :node),
- :right => Atomy::AST::Block.new(
- :line => 0,
- :contents => [@pattern])),
+ Compose.new(
+ :left => Word.new(:text => :node),
+ :right => Block.new(:contents => [@pattern])),
@module_name
],
:name => :_pattern,

0 comments on commit 08c8187

Please sign in to comment.