Sha256: 138f965c9ab8acf006d8761d5350ec25eaf05b61b1deadff65c07fcbe6313459
Contents?: true
Size: 553 Bytes
Versions: 15
Compression:
Stored size: 553 Bytes
Contents
# coding: utf-8 module Fig; end class Fig::TokenizedString; end class Fig::TokenizedString::Token attr_reader :type attr_reader :raw_value def initialize(type, raw_value) @type = type @raw_value = raw_value return end def to_expanded_string(&block) return block.call self end def to_escaped_string() return raw_value end def to_double_quotable_string(metacharacters) return raw_value end def to_single_quoted_string() raise NotImplementedError.new 'Cannot single-quote a token.' end end
Version data entries
15 entries across 15 versions & 1 rubygems