Class: Rusty::RuleSet::Rule

Inherits:
Struct
  • Object
show all
Defined in:
lib/rusty/rule_set.rb

Overview

A rule combines a selector with a proc.

Instance Attribute Summary collapse

Instance Attribute Details

#procObject

Returns the value of attribute proc

Returns:

  • (Object)

    the current value of proc



10
11
12
# File 'lib/rusty/rule_set.rb', line 10

def proc
  @proc
end

#selectorObject

Returns the value of attribute selector

Returns:

  • (Object)

    the current value of selector



10
11
12
# File 'lib/rusty/rule_set.rb', line 10

def selector
  @selector
end