Class: ReadTime::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/read-time.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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

#formatObject

Returns the value of attribute format.



46
47
48
# File 'lib/read-time.rb', line 46

def format
  @format
end

#reading_speedObject

Returns the value of attribute reading_speed.



46
47
48
# File 'lib/read-time.rb', line 46

def reading_speed
  @reading_speed
end