Class: Blueprints::Context
- Inherits:
-
Object
- Object
- Blueprints::Context
- Defined in:
- lib/blueprints/context.rb
Overview
Class that blueprint blocks are evaluated against. Allows you to access options that were passed to build method.
Instance Attribute Summary collapse
-
#attributes ⇒ Object
Returns the value of attribute attributes.
-
#options ⇒ Object
Returns the value of attribute options.
Instance Method Summary collapse
-
#build(*names) ⇒ Object
Method that allows building one blueprint inside of another.
Instance Attribute Details
#attributes ⇒ Object
Returns the value of attribute attributes.
4 5 6 |
# File 'lib/blueprints/context.rb', line 4 def attributes @attributes end |
#options ⇒ Object
Returns the value of attribute options.
4 5 6 |
# File 'lib/blueprints/context.rb', line 4 def @options end |