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.



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

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

Instance Attribute Details

#pathObject (readonly)

Returns the value of attribute path.



19
20
21
# File 'lib/proscenium/css_module.rb', line 19

def path
  @path
end

Instance Method Details

#to_sObject



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

def to_s
  @transform
end

#to_symObject



31
32
33
# File 'lib/proscenium/css_module.rb', line 31

def to_sym
  @name
end