Class: Jekyll::Copyr::Task
- Inherits:
-
Object
- Object
- Jekyll::Copyr::Task
- Defined in:
- lib/jekyll-copyr/task.rb
Instance Attribute Summary collapse
-
#from ⇒ Object
Returns the value of attribute from.
-
#to ⇒ Object
Returns the value of attribute to.
Instance Method Summary collapse
-
#initialize(task_hash = {}) ⇒ Task
constructor
A new instance of Task.
Constructor Details
#initialize(task_hash = {}) ⇒ Task
Returns a new instance of Task.
8 9 10 11 |
# File 'lib/jekyll-copyr/task.rb', line 8 def initialize(task_hash = {}) @from = task_hash.fetch "from", nil @to = task_hash.fetch "to", nil end |
Instance Attribute Details
#from ⇒ Object
Returns the value of attribute from.
6 7 8 |
# File 'lib/jekyll-copyr/task.rb', line 6 def from @from end |
#to ⇒ Object
Returns the value of attribute to.
6 7 8 |
# File 'lib/jekyll-copyr/task.rb', line 6 def to @to end |