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

Version Path
fig-1.27.10 lib/fig/tokenized_string/token.rb
fig-1.27.8 lib/fig/tokenized_string/token.rb
fig-1.27.5 lib/fig/tokenized_string/token.rb
fig-1.27.4 lib/fig/tokenized_string/token.rb
fig-1.27.3 lib/fig/tokenized_string/token.rb
fig-1.27.0 lib/fig/tokenized_string/token.rb
fig-1.26.1.beta.1 lib/fig/tokenized_string/token.rb
fig-1.26.0 lib/fig/tokenized_string/token.rb
fig-1.25.1.beta.1 lib/fig/tokenized_string/token.rb
fig-1.25.0 lib/fig/tokenized_string/token.rb
fig-1.24.1.beta.3 lib/fig/tokenized_string/token.rb
fig-1.24.1.beta.2 lib/fig/tokenized_string/token.rb
fig-1.24.1.beta.1 lib/fig/tokenized_string/token.rb
fig-1.24.0 lib/fig/tokenized_string/token.rb
fig-1.23.1.beta.1 lib/fig/tokenized_string/token.rb