Class: Utilities::CollectingMethods::MethodFromLabel

Inherits:
Object
  • Object
show all
Defined in:
lib/utilities/collecting_methods.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(label) ⇒ MethodFromLabel

Returns a new instance of MethodFromLabel

Parameters:

  • label (String)


68
69
70
71
# File 'lib/utilities/collecting_methods.rb', line 68

def initialize(label)
  @verbatim_label = label
  @collecting_method = Utilities::CollectingMethods.method_regex_from_verbatim_label(label)
end

Instance Attribute Details

#dateObject (readonly)

Returns the value of attribute date



65
66
67
# File 'lib/utilities/collecting_methods.rb', line 65

def date
  @date
end

#verbatim_labelObject (readonly)

Returns the value of attribute verbatim_label



65
66
67
# File 'lib/utilities/collecting_methods.rb', line 65

def verbatim_label
  @verbatim_label
end