Class: MigemoRegex::RegexAlternation

Inherits:
Array
  • Object
show all
Defined in:
lib/migemo-regex.rb

Instance Method Summary collapse

Instance Method Details

#delete_ifObject



26
27
28
# File 'lib/migemo-regex.rb', line 26

def delete_if
  self.clone.replace(super {|x| yield(x)})
end

#mapObject



22
23
24
# File 'lib/migemo-regex.rb', line 22

def map
  self.clone.replace(super {|x| yield(x)})
end

#selectObject



30
31
32
# File 'lib/migemo-regex.rb', line 30

def select
  self.clone.replace(super {|x| yield(x)})
end

#sortObject



14
15
16
# File 'lib/migemo-regex.rb', line 14

def sort
  self.clone.replace(super)
end

#uniqObject



18
19
20
# File 'lib/migemo-regex.rb', line 18

def uniq
  self.clone.replace(super)
end