Class: Proscenium::CssModule::Name

Inherits:
Object
  • Object
show all
Defined in:
lib/proscenium/css_module.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, transform, path = nil) ⇒ Name

Returns a new instance of Name.



16
17
18
19
20
# File 'lib/proscenium/css_module.rb', line 16

def initialize(name, transform, path = nil)
  @name = name
  @transform = transform
  @path = path
end

Instance Attribute Details

#pathObject (readonly)

Returns the value of attribute path.



14
15
16
# File 'lib/proscenium/css_module.rb', line 14

def path
  @path
end

Instance Method Details

#to_sObject



22
23
24
# File 'lib/proscenium/css_module.rb', line 22

def to_s
  @transform
end

#to_symObject



26
27
28
# File 'lib/proscenium/css_module.rb', line 26

def to_sym
  @name
end