Module: Shouter::Mixin::InstanceMethods

Defined in:
lib/shouter/mixin.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#objectObject (readonly)

Returns the value of attribute object.



10
11
12
# File 'lib/shouter/mixin.rb', line 10

def object
  @object
end

#optionsObject (readonly)

Returns the value of attribute options.



10
11
12
# File 'lib/shouter/mixin.rb', line 10

def options
  @options
end

#scopeObject (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, options)
  raise Shouter::ScopeMissingError unless options[:scope]

  @object = object
  @options = options
  @scope = options[:scope]
end