lib/parsable/parsable.rb
# achieves an immutable public interface like in Item, but with a shortcut
# using protected (mutating) setters.
achieves an immutable public interface like in Item, but with a shortcut
using protected (mutating) setters.
achieves an immutable public interface like in Item but with a shortcut using protected ( mutating ) setters .
def with_value(new_value = nil, new_not_mode = false)
      return nil if new_value.nil? && default.nil?
      copy = dup
      copy.value = new_value || default
      copy.not_mode = new_not_mode
      copy
    end
def with_value ( new_value = nil , new_not_mode = false ) return nil if new_value . nil? && default . nil? copy = dup copy . value = new_value || default copy . not_mode = new_not_mode copy end
achieves an immutable public interface like in Item, but with a shortcut
using protected (mutating) setters.
achieves an immutable public interface like in Item but with a shortcut using protected ( mutating ) setters .
new_value
<not_specific>
new_not_mode
<not_specific>