Class: RgGen::Core::InputBase::ApproximatelyErrorPosition

Inherits:
Struct
  • Object
show all
Defined in:
lib/rggen/core/input_base/error.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#positionObject

Returns the value of attribute position

Returns:

  • (Object)

    the current value of position



6
7
8
# File 'lib/rggen/core/input_base/error.rb', line 6

def position
  @position
end

Class Method Details

.create(position) ⇒ Object



7
8
9
# File 'lib/rggen/core/input_base/error.rb', line 7

def self.create(position)
  position && new(position)
end

Instance Method Details

#to_sObject



11
12
13
# File 'lib/rggen/core/input_base/error.rb', line 11

def to_s
  "#{position} (approximately)"
end