Class: Droonga::SingleStepDefinition

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(plugin_module) {|_self| ... } ⇒ SingleStepDefinition

Returns a new instance of SingleStepDefinition.

Yields:

  • (_self)

Yield Parameters:



24
25
26
27
28
29
30
31
32
33
# File 'lib/droonga/single_step_definition.rb', line 24

def initialize(plugin_module)
  @plugin_module = plugin_module
  @name = nil
  @handler = nil
  @collector = nil
  @write = false
  @inputs = []
  @output = {}
  yield(self)
end

Instance Attribute Details

#collectorObject

Returns the value of attribute collector.



20
21
22
# File 'lib/droonga/single_step_definition.rb', line 20

def collector
  @collector
end

#handlerObject

Returns the value of attribute handler.



19
20
21
# File 'lib/droonga/single_step_definition.rb', line 19

def handler
  @handler
end

#inputsObject

Returns the value of attribute inputs.



22
23
24
# File 'lib/droonga/single_step_definition.rb', line 22

def inputs
  @inputs
end

#nameObject

Returns the value of attribute name.



18
19
20
# File 'lib/droonga/single_step_definition.rb', line 18

def name
  @name
end

#outputObject

Returns the value of attribute output.



23
24
25
# File 'lib/droonga/single_step_definition.rb', line 23

def output
  @output
end

#write=(value) ⇒ Object (writeonly)

Sets the attribute write

Parameters:

  • value

    the value to set the attribute write to.



21
22
23
# File 'lib/droonga/single_step_definition.rb', line 21

def write=(value)
  @write = value
end

Instance Method Details

#collector_classObject



43
44
45
# File 'lib/droonga/single_step_definition.rb', line 43

def collector_class
  resolve_class(@collector)
end

#handler_classObject



39
40
41
# File 'lib/droonga/single_step_definition.rb', line 39

def handler_class
  resolve_class(@handler)
end

#write?Boolean

Returns:

  • (Boolean)


35
36
37
# File 'lib/droonga/single_step_definition.rb', line 35

def write?
  @write
end