Class: Fdlint::Parser::JS::Expression

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

#left_hand=(left_hand) ⇒ Object



210
211
212
# File 'lib/fdlint/parser/js/struct.rb', line 210

def left_hand=(left_hand)
  @left_hand = left_hand
end

#left_hand?Boolean

Returns:

  • (Boolean)


206
207
208
# File 'lib/fdlint/parser/js/struct.rb', line 206

def left_hand?
  @left_hand || false
end