Class: Rocknab::Builders::Padding
- Inherits:
-
Struct
- Object
- Struct
- Rocknab::Builders::Padding
- Defined in:
- lib/rocknab/builder/padding.rb
Instance Attribute Summary collapse
-
#default ⇒ Object
Returns the value of attribute default.
-
#length ⇒ Object
Returns the value of attribute length.
Instance Method Summary collapse
Instance Attribute Details
#default ⇒ Object
Returns the value of attribute default
3 4 5 |
# File 'lib/rocknab/builder/padding.rb', line 3 def default @default end |
#length ⇒ Object
Returns the value of attribute length
3 4 5 |
# File 'lib/rocknab/builder/padding.rb', line 3 def length @length end |
Instance Method Details
#build(klass) ⇒ Object
4 5 6 |
# File 'lib/rocknab/builder/padding.rb', line 4 def build(klass) default.to_s * length end |