Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

cleanup

  • Loading branch information...
commit 08c81877833dbf369f3f8484f626bc9b0c612a7a 1 parent f8b1de2
@vito authored
Showing with 6 additions and 11 deletions.
  1. +6 −11 lib/atomy/ast/internal/define_pattern.rb
View
17 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.
Something went wrong with that request. Please try again.