Class: Srgs::RuleRef

Inherits:
Object
  • Object
show all
Defined in:
lib/srgs/elements/rule_ref.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#specialObject

Returns the value of attribute special.



4
5
6
# File 'lib/srgs/elements/rule_ref.rb', line 4

def special
  @special
end

#uriObject

Returns the value of attribute uri.



4
5
6
# File 'lib/srgs/elements/rule_ref.rb', line 4

def uri
  @uri
end