Class: Arspy::Operators::Selector::StringSelector
- Inherits:
-
Base
- Object
- Base
- Arspy::Operators::Selector::StringSelector
show all
- Defined in:
- lib/arspy/operators/selector/string_selector.rb
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from Base
#initialize
Class Method Details
.applies?(arg) ⇒ Boolean
5
6
7
|
# File 'lib/arspy/operators/selector/string_selector.rb', line 5
def self.applies?(arg)
arg.is_a? String
end
|
Instance Method Details
#select?(obj) ⇒ Boolean
8
9
10
|
# File 'lib/arspy/operators/selector/string_selector.rb', line 8
def select?(obj)
obj.instance_eval { @argument }
end
|