Class: Srgs::RuleRef
- Inherits:
-
Object
- Object
- Srgs::RuleRef
- Defined in:
- lib/srgs/elements/rule_ref.rb
Instance Attribute Summary collapse
-
#special ⇒ Object
Returns the value of attribute special.
-
#uri ⇒ Object
Returns the value of attribute uri.
Instance Method Summary collapse
-
#initialize(rule, special = nil) ⇒ RuleRef
constructor
A new instance of RuleRef.
Constructor Details
#initialize(rule, special = nil) ⇒ RuleRef
Returns a new instance of RuleRef.
6 7 8 9 |
# File 'lib/srgs/elements/rule_ref.rb', line 6 def initialize(rule, special=nil) @uri = rule unless rule.nil? or rule.empty? @special =special end |
Instance Attribute Details
#special ⇒ Object
Returns the value of attribute special.
4 5 6 |
# File 'lib/srgs/elements/rule_ref.rb', line 4 def special @special end |
#uri ⇒ Object
Returns the value of attribute uri.
4 5 6 |
# File 'lib/srgs/elements/rule_ref.rb', line 4 def uri @uri end |