Class: Charming::Task

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#blockObject (readonly)

Returns the value of attribute block

Returns:

  • (Object)

    the current value of block



4
5
6
# File 'lib/charming/task.rb', line 4

def block
  @block
end

#nameObject (readonly)

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



4
5
6
# File 'lib/charming/task.rb', line 4

def name
  @name
end

Instance Method Details

#callObject



5
# File 'lib/charming/task.rb', line 5

def call = block.call