Class: Grammar::Ruby::Code::Singleton

Inherits:
Primary show all
Defined in:
lib/grammar/ruby/code.rb

Constant Summary

Constants inherited from Grammar::Ruby::Code

False, FalseTerminator, Implicit, Nil, Self, True

Instance Method Summary collapse

Methods inherited from Primary

#_always, #_codes, #_data, #_locals, #_mid, #_never, #_step

Methods inherited from Grammar::Ruby::Code

[], #_always, #_and, #_assign, #_classname, #_code_self, #_codes, #_data, #_def, #_dot, #_else, #_ensure, #_immediate, #_locals, #_mid, #_never, #_not, #_or, #_question, #_rand, #_rcond, #_rescue, #_ror, #_rstep, #_splat, #_step, #_to_block, #_unless, #_until, #_while, #method_missing

Constructor Details

#initializeSingleton

Returns a new instance of Singleton.



257
258
# File 'lib/grammar/ruby/code.rb', line 257

def initialize
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Grammar::Ruby::Code

Instance Method Details

#_equal(other) ⇒ Object



259
260
261
# File 'lib/grammar/ruby/code.rb', line 259

def _equal(other)
    __id__.equal?(other.__id__)
end

#_inspect(s = "", newline = "\n") ⇒ Object



265
266
267
# File 'lib/grammar/ruby/code.rb', line 265

def _inspect(s="", newline="\n")
    s
end

#_lines(text, indent = 0, op = nil, maxlen = 72) ⇒ Object



262
263
264
# File 'lib/grammar/ruby/code.rb', line 262

def _lines(text, indent=0, op=nil, maxlen=72)
    text
end