lib/unitwise/unit.rb in unitwise-0.3.1 vs lib/unitwise/unit.rb in unitwise-0.3.2
- old
+ new
@@ -1,7 +1,9 @@
module Unitwise
class Unit
+ liner :expression, :terms
+
include Unitwise::Composable
def initialize(input)
if input.respond_to?(:expression)
@expression = input.expression
@@ -83,12 +85,7 @@
end
def to_s
expression
end
-
- def inspect
- "<#{self.class} #{to_s}>"
- end
-
end
end
\ No newline at end of file