Class: Grammar::Ruby::Code::Dedented
- Inherits:
-
Command
- Object
- Grammar::Ruby::Code
- Command
- Grammar::Ruby::Code::Dedented
- 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 Command
#_always, #_codes, #_data, #_locals, #_never
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
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
898 899 900 901 |
# File 'lib/grammar/ruby/code.rb', line 898 def _lines(text, indent=0, op=nil, maxlen=72) text[-2] -= 2 if text.last.empty? text.last.concat(@code) end |