Sha256: fdf20c293fca8ccfb6e0bfc2f92d92cc55c5664db94a5bf722f167f902ce98d1

Contents?: true

Size: 355 Bytes

Versions: 7

Compression:

Stored size: 355 Bytes

Contents

class Fancy
  class AST
    [ :Node, :Self, :FixnumLiteral, :NumberLiteral, :RegexLiteral, :ScopedConstant ].
      each { |n| const_set(n, Rubinius::AST.const_get(n)) }
  end
end

class Rubinius::AST::Self
  def method_name(receiver = nil, with_ruby_args = false)
    if with_ruby_args
      "self".to_sym
    else
      ":self".to_sym
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
fancy-0.10.0 boot/rbx-compiler/compiler/ast/node.rb
fancy-0.9.0 boot/rbx-compiler/compiler/ast/node.rb
fancy-0.8.0 boot/rbx-compiler/compiler/ast/node.rb
fancy-0.7.0 boot/rbx-compiler/compiler/ast/node.rb
fancy-0.6.0 boot/rbx-compiler/compiler/ast/node.rb
fancy-0.5.0 boot/rbx-compiler/compiler/ast/node.rb
fancy-0.4.0 boot/rbx-compiler/compiler/ast/node.rb