Class: Toast::Bread::Butter

Inherits:
Toast::Bread show all
Defined in:
lib/toast.rb

Instance Attribute Summary collapse

Attributes inherited from Toast::Bread

#butters, #twitter_account, #twitter_message

Instance Method Summary collapse

Constructor Details

#initialize(name = nil, post_condition = nil, function = nil) ⇒ Butter

Returns a new instance of Butter.



46
47
48
49
50
# File 'lib/toast.rb', line 46

def initialize(name = nil, post_condition = nil, function = nil)
  @name = name
  @post_condition = post_condition
  @function = function
end

Instance Attribute Details

#functionObject

Returns the value of attribute function.



44
45
46
# File 'lib/toast.rb', line 44

def function
  @function
end

#nameObject

Returns the value of attribute name.



44
45
46
# File 'lib/toast.rb', line 44

def name
  @name
end

#post_conditionObject

Returns the value of attribute post_condition.



44
45
46
# File 'lib/toast.rb', line 44

def post_condition
  @post_condition
end