Class: BlackCompany::Task

Inherits:
Object
  • Object
show all
Defined in:
lib/black_company/task.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(content, &block) ⇒ Task

Returns a new instance of Task.



5
6
7
8
# File 'lib/black_company/task.rb', line 5

def initialize(content, &block)
  @content = content
  @proc = block
end

Instance Attribute Details

#contentObject (readonly)

Returns the value of attribute content.



3
4
5
# File 'lib/black_company/task.rb', line 3

def content
  @content
end

#procObject (readonly)

Returns the value of attribute proc.



3
4
5
# File 'lib/black_company/task.rb', line 3

def proc
  @proc
end