lib/code/object/nothing.rb in template-ruby-0.1.0 vs lib/code/object/nothing.rb in template-ruby-0.2.0

- old
+ new

@@ -1,22 +1,23 @@ class Code class Object class Nothing < ::Code::Object - def to_s - "" + attr_reader :raw + + def initialize + @raw = nil end - def inspect - "nothing" + def truthy? + false end - def ==(other) - other.is_a?(::Code::Object::Nothing) + def to_s + "" end - alias_method :eql?, :== - def hash - [self.class, nil].hash + def inspect + "nothing" end end end end