Class: RIO::Match::Record::Base

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

Direct Known Subclasses

All, And, Case, Integer, None, Proc, Range, RegExp, Symbol

Instance Method Summary collapse

Constructor Details

#initialize(arg) ⇒ Base

Returns a new instance of Base.



31
32
33
# File 'lib/rio/matchrecord.rb', line 31

def initialize(arg)
  @select_arg = arg
end

Instance Method Details

#inspectObject



34
35
36
# File 'lib/rio/matchrecord.rb', line 34

def inspect
  @select_arg.inspect
end

#match_all?Boolean

Returns:

  • (Boolean)


40
# File 'lib/rio/matchrecord.rb', line 40

def match_all?() false end

#match_none?Boolean

Returns:

  • (Boolean)


41
# File 'lib/rio/matchrecord.rb', line 41

def match_none?() false end

#valObject



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

def val()
  @select_arg
end