Class: ReadTime::Configuration
- Inherits:
-
Object
- Object
- ReadTime::Configuration
- Defined in:
- lib/read-time.rb
Instance Attribute Summary collapse
-
#format ⇒ Object
Returns the value of attribute format.
-
#reading_speed ⇒ Object
Returns the value of attribute reading_speed.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
48 49 50 51 |
# File 'lib/read-time.rb', line 48 def initialize @format = :default @reading_speed = 275 # WPM (words per minute) end |
Instance Attribute Details
#format ⇒ Object
Returns the value of attribute format.
46 47 48 |
# File 'lib/read-time.rb', line 46 def format @format end |
#reading_speed ⇒ Object
Returns the value of attribute reading_speed.
46 47 48 |
# File 'lib/read-time.rb', line 46 def reading_speed @reading_speed end |