Class: Config::Line

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#section ⇒ Object

Returns the value of attribute section

Returns:

  • (Object) —

    the current value of section



15
16
17
# File 'lib/config.rb', line 15

def section
  @section
end

#text ⇒ Object

Returns the value of attribute text

Returns:

  • (Object) —

    the current value of text



15
16
17
# File 'lib/config.rb', line 15

def text
  @text
end

#variable ⇒ Object

Returns the value of attribute variable

Returns:

  • (Object) —

    the current value of variable



15
16
17
# File 'lib/config.rb', line 15

def variable
  @variable
end

Instance Method Details

#normal_variable ⇒ Object



16
17
18
# File 'lib/config.rb', line 16

def normal_variable
  Variable.normalize(variable&.name)
end