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

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

Direct Known Subclasses

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

Instance Method Summary collapse

Constructor Details

#initialize(arg) ⇒ Base

Returns a new instance of Base.



42
43
44
# File 'lib/rio/matchrecord.rb', line 42

def initialize(arg)
  @select_arg = arg
end

Instance Method Details

#inspectObject



45
46
47
# File 'lib/rio/matchrecord.rb', line 45

def inspect
  @select_arg.inspect
end

#match_all?Boolean

Returns:

  • (Boolean)


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

def match_all?() false end

#match_none?Boolean

Returns:

  • (Boolean)


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

def match_none?() false end

#valObject



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

def val()
  @select_arg
end