Class: XRay::JS::Expression

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

#left_hand=(left_hand) ⇒ Object



202
203
204
# File 'lib/js/struct.rb', line 202

def left_hand=(left_hand)
  @left_hand = left_hand
end

#left_hand?Boolean

Returns:

  • (Boolean)


198
199
200
# File 'lib/js/struct.rb', line 198

def left_hand?
  @left_hand || false
end