Sha256: a63760e4599611965318a63d1698df1fa0a195adfb64af53fd396df4c08ae58d
Contents?: true
Size: 745 Bytes
Versions: 3
Compression:
Stored size: 745 Bytes
Contents
class Symbol { def eval { binding = Binding setup(Rubinius VariableScope of_sender(), Rubinius CompiledMethod of_sender(), Rubinius StaticScope of_sender()) Fancy eval: to_s binding: binding } def inspect { "'" ++ to_s } def defined? { """ @return @true, if @self is defined as a constant in senders scope, @false otherwise. Indicates if a Symbol is defined as a constant in the senders scope. """ binding = Binding setup(Rubinius VariableScope of_sender(), Rubinius CompiledMethod of_sender(), Rubinius StaticScope of_sender()) binding send('self) class const_defined?(self) } }
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
fancy-0.6.0 | lib/rbx/symbol.fy |
fancy-0.5.0 | lib/rbx/symbol.fy |
fancy-0.4.0 | lib/rbx/symbol.fy |