class Nydp::StringFragmentToken
Attributes
rep[RW]
string[RW]
Public Class Methods
new(string, rep)
click to toggle source
# File lib/nydp/string_token.rb, line 4 def initialize string, rep @string, @rep = string, rep end
Public Instance Methods
==(other)
click to toggle source
# File lib/nydp/string_token.rb, line 12 def == other (self.class == other.class) && (self.string == other.string) end
inspect()
click to toggle source
# File lib/nydp/string_token.rb, line 9 def inspect ; rep ; end
to_s()
click to toggle source
# File lib/nydp/string_token.rb, line 8 def to_s ; rep ; end
to_sym()
click to toggle source
# File lib/nydp/string_token.rb, line 10 def to_sym ; string.to_sym ; end