Class: CSSModules::ViewHelper::ModuleLookup

Inherits:
Object
  • Object
show all
Defined in:
lib/css_modules/view_helper.rb

Instance Method Summary collapse

Constructor Details

#initialize(module_name) ⇒ ModuleLookup

Returns a new instance of ModuleLookup.



48
49
50
# File 'lib/css_modules/view_helper.rb', line 48

def initialize(module_name)
  @module_name = module_name
end

Instance Method Details

#selector(selector_names, bare_selector_names = nil) ⇒ Object

Parameters:

  • selector_names (String)
  • bare_selector_names (String) (defaults to: nil)

See Also:

  • CSSModules::ViewHelper::ModuleLookup.{ViewHelper{ViewHelper#css_module}


55
56
57
# File 'lib/css_modules/view_helper.rb', line 55

def selector(selector_names, bare_selector_names = nil)
  create_joined_selector(@module_name, selector_names.to_s, bare_selector_names.to_s)
end