Sha256: 59e16a823bb95f2b81d965c14c2a56ac3fe70a08ad01224f3be1c773f1f4dcd5

Contents?: true

Size: 340 Bytes

Versions: 38

Compression:

Stored size: 340 Bytes

Contents

module AssignableValues
  class HumanizedValue

    attr_reader :value, :humanized

    def initialize(value, humanized)
      @value = value
      @humanized = humanized
    end

    def to_s
      humanized
    end

    def inspect
      "#<#{self.class.name} value: #{value.inspect}, humanized: #{humanized.inspect}>"
    end

  end
end

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
assignable_values-1.1.1 lib/assignable_values/humanized_value.rb
assignable_values-1.1.0 lib/assignable_values/humanized_value.rb
assignable_values-1.0.1 lib/assignable_values/humanized_value.rb
assignable_values-1.0.0 lib/assignable_values/humanized_value.rb
assignable_values-0.18.1 lib/assignable_values/humanized_value.rb
assignable_values-0.18.0 lib/assignable_values/humanized_value.rb
assignable_values-0.17.0 lib/assignable_values/humanized_value.rb
assignable_values-0.16.6 lib/assignable_values/humanized_value.rb
assignable_values-0.16.5 lib/assignable_values/humanized_value.rb
assignable_values-0.16.4 lib/assignable_values/humanized_value.rb
assignable_values-0.16.3 lib/assignable_values/humanized_value.rb
assignable_values-0.16.2 lib/assignable_values/humanized_value.rb
assignable_values-0.16.1 lib/assignable_values/humanized_value.rb
assignable_values-0.16.0 lib/assignable_values/humanized_value.rb
assignable_values-0.15.1 lib/assignable_values/humanized_value.rb
assignable_values-0.15.0 lib/assignable_values/humanized_value.rb
assignable_values-0.14.0 lib/assignable_values/humanized_value.rb
assignable_values-0.13.2 lib/assignable_values/humanized_value.rb
assignable_values-0.13.1 lib/assignable_values/humanized_value.rb
assignable_values-0.13.0 lib/assignable_values/humanized_value.rb