Class: PDK::Config::IniFile::IniFileImpl::SettingLine

Inherits:
Struct
  • Object
show all
Includes:
LineNumber
Defined in:
lib/pdk/config/ini_file.rb

Instance Attribute Summary collapse

Attributes included from LineNumber

#previous

Instance Method Summary collapse

Methods included from LineNumber

#line_number

Instance Attribute Details

#infixObject

Returns the value of attribute infix

Returns:

  • (Object)

    the current value of infix



150
151
152
# File 'lib/pdk/config/ini_file.rb', line 150

def infix
  @infix
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



150
151
152
# File 'lib/pdk/config/ini_file.rb', line 150

def name
  @name
end

#prefixObject

Returns the value of attribute prefix

Returns:

  • (Object)

    the current value of prefix



150
151
152
# File 'lib/pdk/config/ini_file.rb', line 150

def prefix
  @prefix
end

#suffixObject

Returns the value of attribute suffix

Returns:

  • (Object)

    the current value of suffix



150
151
152
# File 'lib/pdk/config/ini_file.rb', line 150

def suffix
  @suffix
end

#valueObject

Returns the value of attribute value

Returns:

  • (Object)

    the current value of value



150
151
152
# File 'lib/pdk/config/ini_file.rb', line 150

def value
  @value
end

Instance Method Details

#==(other) ⇒ Object



157
158
159
# File 'lib/pdk/config/ini_file.rb', line 157

def ==(other)
  super(other) && self.line_number == other.line_number
end

#to_sObject



153
154
155
# File 'lib/pdk/config/ini_file.rb', line 153

def to_s
  "#{prefix}#{name}#{infix}#{value}#{suffix}"
end