Class: Roundup::Scanner
- Inherits:
-
Object
- Object
- Roundup::Scanner
- Defined in:
- lib/roundup.rb
Constant Summary collapse
- DAYS =
[nil, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]
Instance Attribute Summary collapse
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Class Method Summary collapse
Instance Method Summary collapse
- #find(interval) ⇒ Object
-
#initialize(path) ⇒ Scanner
constructor
A new instance of Scanner.
Constructor Details
#initialize(path) ⇒ Scanner
Returns a new instance of Scanner.
68 69 70 |
# File 'lib/roundup.rb', line 68 def initialize path @path = path end |
Instance Attribute Details
#path ⇒ Object (readonly)
Returns the value of attribute path.
60 61 62 |
# File 'lib/roundup.rb', line 60 def path @path end |
Class Method Details
.custom(&block) ⇒ Object
62 63 64 65 66 |
# File 'lib/roundup.rb', line 62 def self.custom &block Class.new(self).tap do |klass| klass.send(:define_method, :created_time, &block) end end |
Instance Method Details
#find(interval) ⇒ Object
72 73 74 |
# File 'lib/roundup.rb', line 72 def find interval send(interval) end |