Sha256: 0a931cb388de9e9053ad094c0817973f156620b51307834a452e80f7d3f5b36f

Contents?: true

Size: 281 Bytes

Versions: 14

Compression:

Stored size: 281 Bytes

Contents

# A String that responds to #humanized.
# Earlier versions of assignable_values dependent on such an API.
class HumanizableString < String

  def initialize(string, humanization)
    super(string)
    @humanization = humanization
  end

  def humanized
    @humanization
  end

end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
assignable_values-0.14.0 lib/assignable_values/humanizable_string.rb
assignable_values-0.13.2 lib/assignable_values/humanizable_string.rb
assignable_values-0.13.1 lib/assignable_values/humanizable_string.rb
assignable_values-0.13.0 lib/assignable_values/humanizable_string.rb
assignable_values-0.12.1 lib/assignable_values/humanizable_string.rb
assignable_values-0.12.0 lib/assignable_values/humanizable_string.rb
assignable_values-0.11.3 lib/assignable_values/humanizable_string.rb
assignable_values-0.11.2 lib/assignable_values/humanizable_string.rb
assignable_values-0.11.1 lib/assignable_values/humanizable_string.rb
assignable_values-0.11.0 lib/assignable_values/humanizable_string.rb
assignable_values-0.10.0 lib/assignable_values/humanizable_string.rb
assignable_values-0.9.0 lib/assignable_values/humanizable_string.rb
assignable_values-0.8.1 lib/assignable_values/humanizable_string.rb
assignable_values-0.8.0 lib/assignable_values/humanizable_string.rb