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.



48
49
50
# File 'lib/rio/entrysel.rb', line 48

def initialize(match_to)
  @match_to = match_to
end

Instance Attribute Details

#match_toObject (readonly)

Returns the value of attribute match_to.



47
48
49
# File 'lib/rio/entrysel.rb', line 47

def match_to
  @match_to
end

Instance Method Details

#===(el) ⇒ Object



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

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

#inspectObject



51
52
53
# File 'lib/rio/entrysel.rb', line 51

def inspect()
  @match_to.to_s
end