Class: RIO::Match::Entry::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/rio/entrysel.rb

Direct Known Subclasses

And, Any, Depth, Glob, None, PathGlob, PathRegexp, Proc, Regexp, Symbol

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(match_to) ⇒ Base

Returns a new instance of Base.



37
38
39
# File 'lib/rio/entrysel.rb', line 37

def initialize(match_to)
  @match_to = match_to
end

Instance Attribute Details

#match_toObject (readonly)

Returns the value of attribute match_to.



36
37
38
# File 'lib/rio/entrysel.rb', line 36

def match_to
  @match_to
end

Instance Method Details

#===(el) ⇒ Object



43
# File 'lib/rio/entrysel.rb', line 43

def ===(el) self =~ el end

#inspectObject



40
41
42
# File 'lib/rio/entrysel.rb', line 40

def inspect()
  @match_to.to_s
end