Class: AngularSprinkles::Context
- Inherits:
-
Object
- Object
- AngularSprinkles::Context
- Defined in:
- lib/angular_sprinkles/context.rb
Instance Attribute Summary collapse
-
#constructor ⇒ Object
readonly
Returns the value of attribute constructor.
-
#constructor_collection ⇒ Object
readonly
Returns the value of attribute constructor_collection.
-
#content_yielder ⇒ Object
Returns the value of attribute content_yielder.
-
#key_generator ⇒ Object
readonly
Returns the value of attribute key_generator.
Instance Method Summary collapse
-
#initialize(args) ⇒ Context
constructor
A new instance of Context.
Constructor Details
#initialize(args) ⇒ Context
Returns a new instance of Context.
6 7 8 9 10 11 |
# File 'lib/angular_sprinkles/context.rb', line 6 def initialize(args) @key_generator = args.fetch(:key_generator) @constructor = args.fetch(:constructor) @constructor_collection = args.fetch(:constructor_collection) @content_yielder = args.fetch(:content_yielder, nil) end |
Instance Attribute Details
#constructor ⇒ Object (readonly)
Returns the value of attribute constructor.
3 4 5 |
# File 'lib/angular_sprinkles/context.rb', line 3 def constructor @constructor end |
#constructor_collection ⇒ Object (readonly)
Returns the value of attribute constructor_collection.
3 4 5 |
# File 'lib/angular_sprinkles/context.rb', line 3 def constructor_collection @constructor_collection end |
#content_yielder ⇒ Object
Returns the value of attribute content_yielder.
4 5 6 |
# File 'lib/angular_sprinkles/context.rb', line 4 def content_yielder @content_yielder end |
#key_generator ⇒ Object (readonly)
Returns the value of attribute key_generator.
3 4 5 |
# File 'lib/angular_sprinkles/context.rb', line 3 def key_generator @key_generator end |