Class: XRay::JS::Statement

Inherits:
Element
  • Object
show all
Defined in:
lib/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 XRay::JS::Element

Instance Method Details

#end_with_semicolon=(end_with_semicolon) ⇒ Object



82
83
84
# File 'lib/js/struct.rb', line 82

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

#end_with_semicolon?Boolean

Returns:

  • (Boolean)


86
87
88
# File 'lib/js/struct.rb', line 86

def end_with_semicolon?
  @end_with_semicolon || false
end