lib/ruby_speech/grxml/ruleref.rb in ruby_speech-1.0.0 vs lib/ruby_speech/grxml/ruleref.rb in ruby_speech-1.0.1
- old
+ new
@@ -32,11 +32,11 @@
#
# @raises ArgumentError if t is nota positive numeric value
#
def uri=(u)
raise ArgumentError, "A Ruleref can only take uri or special" if special
- write_attr :uri, u
+ self[:uri] = u
end
##
# special...
#
@@ -52,10 +52,10 @@
# TODO: raise ArgumentError if not a valid special...
#
def special=(sp)
raise ArgumentError, "A Ruleref can only take uri or special" if uri
raise ArgumentError, "The Ruleref#special method only takes :NULL, :VOID, and :GARBAGE" unless %w{NULL VOID GARBAGE}.include? sp.to_s
- write_attr :special, sp
+ self[:special] = sp
end
def <<(*args)
raise InvalidChildError, "A Ruleref cannot contain children"
end