Class: Kameleon::DSL::Context::Scope

Inherits:
Object
  • Object
show all
Defined in:
lib/kameleon/dsl/context/scope.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(params) ⇒ Scope

Returns a new instance of Scope.



8
9
10
# File 'lib/kameleon/dsl/context/scope.rb', line 8

def initialize(params)
  @params = params
end

Instance Attribute Details

#paramsObject

Returns the value of attribute params.



6
7
8
# File 'lib/kameleon/dsl/context/scope.rb', line 6

def params
  @params
end

Instance Method Details

#selectorObject



12
13
14
# File 'lib/kameleon/dsl/context/scope.rb', line 12

def selector
  detect_selector(params)
end