Class: DefMastership::MatchingLine

Inherits:
Struct
  • Object
show all
Defined in:
lib/defmastership/matching_line.rb

Overview

a composite class

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#lineObject

Returns the value of attribute line

Returns:

  • (Object)

    the current value of line



6
7
8
# File 'lib/defmastership/matching_line.rb', line 6

def line
  @line
end

#matchObject

Returns the value of attribute match

Returns:

  • (Object)

    the current value of match



6
7
8
# File 'lib/defmastership/matching_line.rb', line 6

def match
  @match
end

Instance Method Details

#[](key) ⇒ Object



8
9
10
11
12
13
# File 'lib/defmastership/matching_line.rb', line 8

def [](key)
  value = match[key]
  return value if value

  super
end