Skip to content

Commit

Permalink
rename backfit to alternation
Browse files Browse the repository at this point in the history
  • Loading branch information
Sven Fuchs committed Jun 28, 2009
1 parent 88727e6 commit 10f4069
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion lib/ruby/backfit/args.rb → lib/ruby/alternation/args.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module Ruby
module Backfit
module Alternation
module ArgsList
def options
last.arg.is_a?(Ruby::Hash) ? last : nil
Expand Down
2 changes: 1 addition & 1 deletion lib/ruby/backfit/hash.rb → lib/ruby/alternation/hash.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module Ruby
module Backfit
module Alternation
module Hash
def [](key)
each { |assoc| return assoc.value if assoc.key.value == key } or nil
Expand Down
2 changes: 1 addition & 1 deletion lib/ruby/backfit/list.rb → lib/ruby/alternation/list.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module Ruby
module Backfit
module Alternation
module List
def <<(element)
elements << element
Expand Down
4 changes: 2 additions & 2 deletions lib/ruby/args.rb
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
require 'ruby/aggregate'
require 'ruby/list'
require 'ruby/backfit/args'
require 'ruby/alternation/args'

module Ruby
class ArgsList < DelimitedList
include Backfit::ArgsList
include Alternation::ArgsList
end

class HeredocArgsList < ArgsList
Expand Down
4 changes: 2 additions & 2 deletions lib/ruby/hash.rb
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
require 'ruby/assoc'
require 'ruby/backfit/hash'
require 'ruby/alternation/hash'

module Ruby
class Hash < DelimitedList
include Backfit::Hash
include Alternation::Hash

def value
code = to_ruby(false)
Expand Down
4 changes: 2 additions & 2 deletions lib/ruby/list.rb
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
require 'ruby/node'
require 'ruby/backfit/list'
require 'ruby/alternation/list'

module Ruby
class List < Aggregate
include Conversions::List
include Backfit::List
include Alternation::List

child_accessor :elements

Expand Down

0 comments on commit 10f4069

Please sign in to comment.