Class: Ruleby::Core::BlockAtom

Inherits:
PropertyAtom show all
Defined in:
lib/core/atoms.rb

Overview

TODO use this

Instance Attribute Summary

Attributes inherited from Atom

#deftemplate, #method, #proc, #tag

Instance Method Summary collapse

Methods inherited from PropertyAtom

#==

Methods inherited from Atom

#initialize, #to_s

Constructor Details

This class inherits a constructor from Ruleby::Core::Atom

Instance Method Details

#shareable?(atom) ⇒ Boolean

Returns:

  • (Boolean)


52
53
54
55
56
# File 'lib/core/atoms.rb', line 52

def shareable?(atom)
  return super &&
         BlockAtom === atom &&              
         @proc == atom.proc 
end