Module: Shouter::Mixin::InstanceMethods
- Defined in:
- lib/shouter/mixin.rb
Instance Attribute Summary collapse
-
#object ⇒ Object
readonly
Returns the value of attribute object.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#scope ⇒ Object
readonly
Returns the value of attribute scope.
Instance Method Summary collapse
Instance Attribute Details
#object ⇒ Object (readonly)
Returns the value of attribute object.
10 11 12 |
# File 'lib/shouter/mixin.rb', line 10 def object @object end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
10 11 12 |
# File 'lib/shouter/mixin.rb', line 10 def @options end |
#scope ⇒ Object (readonly)
Returns the value of attribute scope.
10 11 12 |
# File 'lib/shouter/mixin.rb', line 10 def scope @scope end |
Instance Method Details
#initialize(object, options) ⇒ Object
12 13 14 15 16 17 18 |
# File 'lib/shouter/mixin.rb', line 12 def initialize(object, ) raise Shouter::ScopeMissingError unless [:scope] @object = object @options = @scope = [:scope] end |