Class: POECSS::SimpleClause
- Inherits:
-
Struct
- Object
- Struct
- POECSS::SimpleClause
- Defined in:
- lib/poe-css.rb,
lib/poe-css.rb
Instance Attribute Summary collapse
-
#command_clauses ⇒ Object
Returns the value of attribute command_clauses.
-
#match_clauses ⇒ Object
Returns the value of attribute match_clauses.
Instance Method Summary collapse
Instance Attribute Details
#command_clauses ⇒ Object
Returns the value of attribute command_clauses
8 9 10 |
# File 'lib/poe-css.rb', line 8 def command_clauses @command_clauses end |
#match_clauses ⇒ Object
Returns the value of attribute match_clauses
8 9 10 |
# File 'lib/poe-css.rb', line 8 def match_clauses @match_clauses end |
Instance Method Details
#inspect ⇒ Object
53 54 55 56 57 |
# File 'lib/poe-css.rb', line 53 def inspect matches = 'Match (' + match_clauses.map { |s| [ s.match_key, s.match_arguments.inspect ].compact.join(' ') }.join(' ') + ')' commands = '{ ' + command_clauses.map { |c| [ c.command_key, c.command_argument ].compact.join(' ') }.join(', ') + ' }' '<' + [ matches, commands ].join(' ') + '>' end |