Class: Sass::Selector::Class
Overview
A class selector (e.g. .foo
).
Instance Attribute Summary collapse
-
#name ⇒ Array<String, Sass::Script::Node>
readonly
The class name.
Attributes inherited from Simple
Instance Method Summary collapse
-
#initialize(name) ⇒ Class
constructor
A new instance of Class.
- #to_a
Methods inherited from Simple
#eql?, #hash, #inspect, #unify, #unify_namespaces
Constructor Details
#initialize(name) ⇒ Class
Returns a new instance of Class.
47 48 49 |
# File 'lib/sass/selector.rb', line 47
def initialize(name)
@name = name
end
|
Instance Attribute Details
#name ⇒ Array<String, Sass::Script::Node> (readonly)
The class name.
44 45 46 |
# File 'lib/sass/selector.rb', line 44
def name
@name
end
|
Instance Method Details
#to_a
52 53 54 |
# File 'lib/sass/selector.rb', line 52
def to_a
[".", *@name]
end
|