class Atomy::Code::Pattern::Splat

Public Class Methods

new(pattern) click to toggle source
# File lib/atomy/code/pattern/splat.rb, line 8
def initialize(pattern)
  @pattern = pattern
end

Public Instance Methods

assign(gen) click to toggle source
# File lib/atomy/code/pattern/splat.rb, line 21
def assign(gen)
  @pattern.assign(gen)
end
bytecode(gen, mod) click to toggle source
# File lib/atomy/code/pattern/splat.rb, line 12
def bytecode(gen, mod)
  gen.push_cpath_top
  gen.find_const(:Atomy)
  gen.find_const(:Pattern)
  gen.find_const(:Splat)
  mod.compile(gen, @pattern)
  gen.send(:new, 1)
end
splat?() click to toggle source
# File lib/atomy/code/pattern/splat.rb, line 25
def splat?
  true
end