Class: Toast::Bread::Butter
- Inherits:
-
Toast::Bread
- Object
- Toast::Bread
- Toast::Bread::Butter
- Defined in:
- lib/toast.rb
Instance Attribute Summary collapse
-
#function ⇒ Object
Returns the value of attribute function.
-
#name ⇒ Object
Returns the value of attribute name.
-
#post_condition ⇒ Object
Returns the value of attribute post_condition.
Attributes inherited from Toast::Bread
#butters, #twitter_account, #twitter_message
Instance Method Summary collapse
-
#initialize(name = nil, post_condition = nil, function = nil) ⇒ Butter
constructor
A new instance of Butter.
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
#function ⇒ Object
Returns the value of attribute function.
44 45 46 |
# File 'lib/toast.rb', line 44 def function @function end |
#name ⇒ Object
Returns the value of attribute name.
44 45 46 |
# File 'lib/toast.rb', line 44 def name @name end |
#post_condition ⇒ Object
Returns the value of attribute post_condition.
44 45 46 |
# File 'lib/toast.rb', line 44 def post_condition @post_condition end |