class Fasterer::Primitive

Attributes

element[R]

Public Class Methods

new(element) click to toggle source
# File lib/fasterer/method_call.rb, line 127
def initialize(element)
  @element = element
end

Public Instance Methods

array?() click to toggle source
# File lib/fasterer/method_call.rb, line 139
def array?
  type == :array
end
range?() click to toggle source
# File lib/fasterer/method_call.rb, line 135
def range?
  [:dot2, :dot3, :lit].include?(type)
end
type() click to toggle source
# File lib/fasterer/method_call.rb, line 131
def type
  @type ||= @element[0]
end