Class: Stupidedi::Editor::X222

Inherits:
AbstractEd show all
Defined in:
lib/stupidedi/editor/X222-HC837.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) ⇒ X222

Returns a new instance of X222.


13
14
15
16
# File 'lib/stupidedi/editor/X222-HC837.rb', line 13

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

Instance Attribute Details

#configConfig (readonly)

Returns:


8
9
10
# File 'lib/stupidedi/editor/X222-HC837.rb', line 8

def config
  @config
end

#receivedTime (readonly)

Returns:

  • (Time)

11
12
13
# File 'lib/stupidedi/editor/X222-HC837.rb', line 11

def received
  @received
end

Instance Method Details

#critique(st, acc)


18
19
20
21
22
23
24
25
26
27
28
# File 'lib/stupidedi/editor/X222-HC837.rb', line 18

def critique(st, acc)
  acc.tap do
    critique_st(st, acc)

  # st.find(:SE).tap do |se|
  #   st.distance(se).tap do |n|
  #     n.times { st.next.tap{|z| z }}
  #   end
  # end
  end
end