class Mhc::Query::Argument

Argument

Symbol || String

Public Class Methods

new(context) click to toggle source
# File lib/mhc/query.rb, line 112
def initialize(context)
  token = context.expect(:symbol, :string)
  @type  = token.type
  @value = token.value
end

Public Instance Methods

value() click to toggle source
# File lib/mhc/query.rb, line 118
def value
  case @type
  when :string
    @value[1..-2]
  else
    @value
  end
end