Class: AngularSprinkles::Context

Inherits:
Object
  • Object
show all
Defined in:
lib/angular_sprinkles/context.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#constructorObject (readonly)

Returns the value of attribute constructor.



3
4
5
# File 'lib/angular_sprinkles/context.rb', line 3

def constructor
  @constructor
end

#constructor_collectionObject (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_yielderObject

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_generatorObject (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