Class: Crease::Configuration
- Inherits:
-
Object
- Object
- Crease::Configuration
- Defined in:
- lib/crease/configuration.rb
Instance Attribute Summary collapse
-
#digits ⇒ Object
Returns the value of attribute digits.
-
#integer ⇒ Object
Returns the value of attribute integer.
Instance Method Summary collapse
-
#initialize(digits: 2, integer: false) ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize(digits: 2, integer: false) ⇒ Configuration
Returns a new instance of Configuration.
15 16 17 18 |
# File 'lib/crease/configuration.rb', line 15 def initialize(digits: 2, integer: false) @digits = digits @integer = integer end |
Instance Attribute Details
#digits ⇒ Object
Returns the value of attribute digits.
13 14 15 |
# File 'lib/crease/configuration.rb', line 13 def digits @digits end |
#integer ⇒ Object
Returns the value of attribute integer.
13 14 15 |
# File 'lib/crease/configuration.rb', line 13 def integer @integer end |