Class: CSS::Nodes::SimpleBlock
- Inherits:
-
Data
- Object
- Data
- CSS::Nodes::SimpleBlock
- Defined in:
- lib/css/nodes.rb
Overview
A ‘( … )`, `[ … ]`, or `{ … }` block as a component value. `open` is one of `(`, `[`, `{`. `value` is an array of component values.
Instance Attribute Summary collapse
-
#open ⇒ Object
readonly
Returns the value of attribute open.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
Instance Attribute Details
#open ⇒ Object (readonly)
Returns the value of attribute open
27 28 29 |
# File 'lib/css/nodes.rb', line 27 def open @open end |
#value ⇒ Object (readonly)
Returns the value of attribute value
27 28 29 |
# File 'lib/css/nodes.rb', line 27 def value @value end |
Instance Method Details
#braced? ⇒ Boolean
28 |
# File 'lib/css/nodes.rb', line 28 def braced? = open == '{' |
#bracketed? ⇒ Boolean
29 |
# File 'lib/css/nodes.rb', line 29 def bracketed? = open == '[' |
#parenthesized? ⇒ Boolean
30 |
# File 'lib/css/nodes.rb', line 30 def parenthesized? = open == '(' |