Class: Iceberg::TruncateTransform
- Defined in:
- lib/iceberg/transforms.rb
Instance Attribute Summary collapse
-
#width ⇒ Object
readonly
Returns the value of attribute width.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(width) ⇒ TruncateTransform
constructor
A new instance of TruncateTransform.
- #inspect ⇒ Object
Constructor Details
#initialize(width) ⇒ TruncateTransform
Returns a new instance of TruncateTransform.
34 35 36 |
# File 'lib/iceberg/transforms.rb', line 34 def initialize(width) @width = width end |
Instance Attribute Details
#width ⇒ Object (readonly)
Returns the value of attribute width.
32 33 34 |
# File 'lib/iceberg/transforms.rb', line 32 def width @width end |
Instance Method Details
#==(other) ⇒ Object
38 39 40 |
# File 'lib/iceberg/transforms.rb', line 38 def ==(other) other.is_a?(self.class) && other.width == @width end |
#inspect ⇒ Object
42 43 44 |
# File 'lib/iceberg/transforms.rb', line 42 def inspect "#<#{self.class.name} width=#{@width.inspect}>" end |