Class: Y2R::AST::Ruby::When
- Inherits:
-
Node
- Object
- OpenStruct
- Node
- Y2R::AST::Ruby::When
show all
- Defined in:
- lib/y2r/ast/ruby.rb
Constant Summary
Constants inherited
from Node
Node::INDENT_STEP
Instance Method Summary
collapse
Methods inherited from Node
#ends_with_comment?, #ensure_separated, #has_comment?, #hates_to_stand_alone?, #pass_trailer?, #single_line_width, #starts_with_comment?, #to_ruby
Instance Method Details
#single_line_width_base(context) ⇒ Object
585
586
587
|
# File 'lib/y2r/ast/ruby.rb', line 585
def single_line_width_base(context)
Float::INFINITY end
|
#to_ruby_base(context) ⇒ Object
577
578
579
580
581
582
583
|
# File 'lib/y2r/ast/ruby.rb', line 577
def to_ruby_base(context)
if !
to_ruby_base_single_line(context)
else
to_ruby_base_multi_line(context)
end
end
|