Module: Basic101::Identity
- Included in:
- BinaryOperation, BinaryOperations, FunctionCall, Identifier, Line, NegateOperation, NotOperation, NullPromptDelimeter, PowerOperation, PrintComma, PrintSemicolon, Program, PromptDelimeter, Reference, Statement, UserDefinedFunction
- Defined in:
- lib/basic101/identity.rb
Instance Method Summary collapse
Instance Method Details
#==(other) ⇒ Object
7 8 9 10 |
# File 'lib/basic101/identity.rb', line 7 def ==(other) return false unless other.is_a?(self.class) self.state == other.state end |