Method: UnitMeasurements::Unit#inspect
- Defined in:
- lib/unit_measurements/unit.rb
#inspect ⇒ Object
Returns an object representation of the unit, including its aliases if present.
131 132 133 134 |
# File 'lib/unit_measurements/unit.rb', line 131 def inspect aliases = "(#{@aliases.join(", ")})" if @aliases.any? "#<#{self.class.name}: #{name} #{aliases}>" end |