Class: ReadIt::Sub
- Inherits:
-
Object
- Object
- ReadIt::Sub
- Defined in:
- lib/read_it/sub.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name) ⇒ Sub
constructor
A new instance of Sub.
- #recent ⇒ Object
- #sample ⇒ Object
Constructor Details
#initialize(name) ⇒ Sub
Returns a new instance of Sub.
5 6 7 |
# File 'lib/read_it/sub.rb', line 5 def initialize name @name = "/r/#{name}" end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
3 4 5 |
# File 'lib/read_it/sub.rb', line 3 def name @name end |