Add \s to expand to whitespace characters
This commit is contained in:
1 parent
c6bac6d3a1
commit
f67dd62b20
3 files changed
+31
No files matched your search
@@ -98,6 +98,15 @@ module Imbecile
|
||||
def method_missing(*args)
|
||||
@units.__send__(*args)
|
||||
end
|
||||
def <<(thing)
|
||||
if thing.is_a?(CharacterClassUnit)
|
||||
thing.each do |ccu_unit|
|
||||
@units << ccu_unit
|
||||
end
|
||||
else
|
||||
@units << thing
|
||||
end
|
||||
end
|
||||
def last_unit
|
||||
@units[-1]
|
||||
end
|
||||
|
||||
Reference in new issue
Block a user