Class: Config::Line

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#sectionObject

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

#textObject

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

#variableObject

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_variableObject



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

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