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



148
149
150
# File 'lib/pdk/config/ini_file.rb', line 148

def infix
  @infix
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



148
149
150
# File 'lib/pdk/config/ini_file.rb', line 148

def name
  @name
end

#prefixObject

Returns the value of attribute prefix

Returns:

  • (Object)

    the current value of prefix



148
149
150
# File 'lib/pdk/config/ini_file.rb', line 148

def prefix
  @prefix
end

#suffixObject

Returns the value of attribute suffix

Returns:

  • (Object)

    the current value of suffix



148
149
150
# File 'lib/pdk/config/ini_file.rb', line 148

def suffix
  @suffix
end

#valueObject

Returns the value of attribute value

Returns:

  • (Object)

    the current value of value



148
149
150
# File 'lib/pdk/config/ini_file.rb', line 148

def value
  @value
end

Instance Method Details

#==(other) ⇒ Object



155
156
157
# File 'lib/pdk/config/ini_file.rb', line 155

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

#to_sObject



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

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