Class: Stupidedi::Editor::TransactionSetEd

Inherits:
AbstractEd
  • Object
show all
Defined in:
lib/stupidedi/editor/transaction_set_ed.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from AbstractEd

#edit, edit, #rewrite, rewrite

Methods included from Inspect

#inspect

Constructor Details

#initialize(config, received) ⇒ TransactionSetEd

Returns a new instance of TransactionSetEd.



15
16
17
18
# File 'lib/stupidedi/editor/transaction_set_ed.rb', line 15

def initialize(config, received)
  @config, @received =
    config, received
end

Instance Attribute Details

#configConfig (readonly)

Returns:



10
11
12
# File 'lib/stupidedi/editor/transaction_set_ed.rb', line 10

def config
  @config
end

#receivedTime (readonly)

Returns:

  • (Time)


13
14
15
# File 'lib/stupidedi/editor/transaction_set_ed.rb', line 13

def received
  @received
end

Instance Method Details

#critique(st, acc) ⇒ Object



20
21
22
23
24
25
26
27
28
29
30
# File 'lib/stupidedi/editor/transaction_set_ed.rb', line 20

def critique(st, acc)
  st.parent.tap do |gs|
    gs.parent.tap do |isa|
      critique_isa(isa, acc)
    end

    critique_gs(gs, acc)
  end

  acc.tap { critique_st(st, acc) }
end