Class: Grammar::Ruby::Code::Method

Inherits:
Call 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 Call

#_codes, #initialize

Methods inherited from List

#_always, #_codes, #_never, #_operator, #_operator0, #_paren, #initialize

Methods inherited from Grammar::Ruby::Code

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

Constructor Details

This class inherits a constructor from Grammar::Ruby::Code::Call

Dynamic Method Handling

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

Instance Method Details

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



855
856
857
858
859
# File 'lib/grammar/ruby/code.rb', line 855

def _lines(text, indent=0, op=nil, maxlen=72)
    super(text, indent, ?\(, maxlen)
ensure
    text.last << ?\)
end