Class: CSSModules::ViewHelper::ModuleLookup
- Inherits:
-
Object
- Object
- CSSModules::ViewHelper::ModuleLookup
- Defined in:
- lib/css_modules/view_helper.rb
Instance Method Summary collapse
-
#initialize(module_name) ⇒ ModuleLookup
constructor
A new instance of ModuleLookup.
- #selector(selector_names, bare_selector_names = nil) ⇒ Object
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
55 56 57 |
# File 'lib/css_modules/view_helper.rb', line 55 def selector(selector_names, = nil) create_joined_selector(@module_name, selector_names.to_s, .to_s) end |