Class: POECSS::SimpleClause

Inherits:
Struct
  • Object
show all
Defined in:
lib/poe-css.rb,
lib/poe-css.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#command_clausesObject

Returns the value of attribute command_clauses

Returns:

  • (Object)

    the current value of command_clauses



8
9
10
# File 'lib/poe-css.rb', line 8

def command_clauses
  @command_clauses
end

#match_clausesObject

Returns the value of attribute match_clauses

Returns:

  • (Object)

    the current value of match_clauses



8
9
10
# File 'lib/poe-css.rb', line 8

def match_clauses
  @match_clauses
end

Instance Method Details

#inspectObject



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