Class: Y2R::AST::Ruby::Break

Inherits:
Node
  • Object
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

#priorityObject



699
700
701
# File 'lib/y2r/ast/ruby.rb', line 699

def priority
  Priority::NONE
end

#single_line_width_base(context) ⇒ Object



695
696
697
# File 'lib/y2r/ast/ruby.rb', line 695

def single_line_width_base(context)
  5
end

#to_ruby_base(context) ⇒ Object



691
692
693
# File 'lib/y2r/ast/ruby.rb', line 691

def to_ruby_base(context)
  "break"
end