Class: Sexp

Inherits:
Object
  • Object
show all
Defined in:
lib/flay.rb

Instance Method Summary collapse

Instance Method Details

#all_structural_subhashesObject



324
325
326
327
328
329
330
# File 'lib/flay.rb', line 324

def all_structural_subhashes
  hashes = []
  self.deep_each do |node|
    hashes << node.structural_hash
  end
  hashes
end

#structural_hashObject



320
321
322
# File 'lib/flay.rb', line 320

def structural_hash
  @structural_hash ||= self.structure.hash
end