Class: Fdlint::Parser::JS::Statement

Inherits:
Element show all
Defined in:
lib/fdlint/parser/js/struct.rb

Instance Attribute Summary

Attributes inherited from Element

#left, #right, #type

Instance Method Summary collapse

Methods inherited from Element

#contains?, #initialize, #position, #text

Constructor Details

This class inherits a constructor from Fdlint::Parser::JS::Element

Instance Method Details

#end_with_semicolon=(end_with_semicolon) ⇒ Object



90
91
92
# File 'lib/fdlint/parser/js/struct.rb', line 90

def end_with_semicolon=(end_with_semicolon)
  @end_with_semicolon = !!end_with_semicolon
end

#end_with_semicolon?Boolean

Returns:

  • (Boolean)


94
95
96
# File 'lib/fdlint/parser/js/struct.rb', line 94

def end_with_semicolon?
  !!@end_with_semicolon
end