Sha256: f463fe55ffd91f024989ef6ace2b15db75596a72a3d7973e258f6e2dafad87db

Contents?: true

Size: 536 Bytes

Versions: 34

Compression:

Stored size: 536 Bytes

Contents

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

34 entries across 34 versions & 1 rubygems

Version Path
fig-1.23.0 lib/fig/tokenized_string/token.rb
fig-1.22.1.beta.1 lib/fig/tokenized_string/token.rb
fig-1.22.0 lib/fig/tokenized_string/token.rb
fig-1.21.1.beta.2 lib/fig/tokenized_string/token.rb
fig-1.21.1.beta.1 lib/fig/tokenized_string/token.rb
fig-1.21.0 lib/fig/tokenized_string/token.rb
fig-1.20.1.beta.1 lib/fig/tokenized_string/token.rb
fig-1.20.0 lib/fig/tokenized_string/token.rb
fig-1.19.0 lib/fig/tokenized_string/token.rb
fig-1.18.0 lib/fig/tokenized_string/token.rb
fig-1.17.0 lib/fig/tokenized_string/token.rb
fig-1.16.1.beta.1 lib/fig/tokenized_string/token.rb
fig-1.16.0 lib/fig/tokenized_string/token.rb
fig-1.15.1.beta.2 lib/fig/tokenized_string/token.rb
fig-1.15.1.beta.1 lib/fig/tokenized_string/token.rb
fig-1.15.0 lib/fig/tokenized_string/token.rb
fig-1.14.0 lib/fig/tokenized_string/token.rb
fig-1.13.0 lib/fig/tokenized_string/token.rb
fig-1.12.0 lib/fig/tokenized_string/token.rb
fig-1.11.0 lib/fig/tokenized_string/token.rb