Class: CSSModules::ViewHelper::StyleModule
- Inherits:
-
Object
- Object
- CSSModules::ViewHelper::StyleModule
- Defined in:
- lib/css_modules/view_helper.rb
Instance Method Summary collapse
-
#initialize(module_name) ⇒ StyleModule
constructor
A new instance of StyleModule.
- #name ⇒ Object
- #selector(selector_names, bare_selector_names = nil) ⇒ Object
Constructor Details
#initialize(module_name) ⇒ StyleModule
Returns a new instance of StyleModule.
58 59 60 |
# File 'lib/css_modules/view_helper.rb', line 58 def initialize(module_name) @module_name = module_name end |
Instance Method Details
#name ⇒ Object
62 63 64 |
# File 'lib/css_modules/view_helper.rb', line 62 def name @module_name end |
#selector(selector_names, bare_selector_names = nil) ⇒ Object
69 70 71 |
# File 'lib/css_modules/view_helper.rb', line 69 def selector(selector_names, = nil) create_joined_selector(@module_name, selector_names.to_s, .to_s) end |