Class: Smalltime::Configuration
- Inherits:
-
Object
- Object
- Smalltime::Configuration
- Defined in:
- lib/smalltime/configuration.rb
Instance Attribute Summary collapse
-
#maximum_unit ⇒ Object
Returns the value of attribute maximum_unit.
-
#strict ⇒ Object
Returns the value of attribute strict.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
- #strict? ⇒ Boolean
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
5 6 7 8 |
# File 'lib/smalltime/configuration.rb', line 5 def initialize @strict = false @maximum_unit = nil end |
Instance Attribute Details
#maximum_unit ⇒ Object
Returns the value of attribute maximum_unit.
3 4 5 |
# File 'lib/smalltime/configuration.rb', line 3 def maximum_unit @maximum_unit end |
#strict ⇒ Object
Returns the value of attribute strict.
3 4 5 |
# File 'lib/smalltime/configuration.rb', line 3 def strict @strict end |
Instance Method Details
#strict? ⇒ Boolean
10 11 12 |
# File 'lib/smalltime/configuration.rb', line 10 def strict? @strict end |