class Fig::TokenizedString::Token
Attributes
raw_value[R]
type[R]
Public Class Methods
new(type, raw_value)
click to toggle source
# File lib/fig/tokenized_string/token.rb, line 10 def initialize(type, raw_value) @type = type @raw_value = raw_value return end
Public Instance Methods
to_double_quotable_string(metacharacters)
click to toggle source
# File lib/fig/tokenized_string/token.rb, line 25 def to_double_quotable_string(metacharacters) return raw_value end
to_escaped_string()
click to toggle source
# File lib/fig/tokenized_string/token.rb, line 21 def to_escaped_string() return raw_value end
to_expanded_string(&block)
click to toggle source
# File lib/fig/tokenized_string/token.rb, line 17 def to_expanded_string(&block) return block.call self end
to_single_quoted_string()
click to toggle source
# File lib/fig/tokenized_string/token.rb, line 29 def to_single_quoted_string() raise NotImplementedError.new 'Cannot single-quote a token.' end