Class: Droonga::SingleStepDefinition
- Inherits:
-
Object
- Object
- Droonga::SingleStepDefinition
- Defined in:
- lib/droonga/single_step_definition.rb
Instance Attribute Summary collapse
-
#collector ⇒ Object
Returns the value of attribute collector.
-
#handler ⇒ Object
Returns the value of attribute handler.
-
#inputs ⇒ Object
Returns the value of attribute inputs.
-
#name ⇒ Object
Returns the value of attribute name.
-
#output ⇒ Object
Returns the value of attribute output.
-
#write ⇒ Object
writeonly
Sets the attribute write.
Instance Method Summary collapse
- #collector_class ⇒ Object
- #handler_class ⇒ Object
-
#initialize(plugin_module) {|_self| ... } ⇒ SingleStepDefinition
constructor
A new instance of SingleStepDefinition.
- #write? ⇒ Boolean
Constructor Details
#initialize(plugin_module) {|_self| ... } ⇒ SingleStepDefinition
Returns a new instance of SingleStepDefinition.
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
#collector ⇒ Object
Returns the value of attribute collector.
20 21 22 |
# File 'lib/droonga/single_step_definition.rb', line 20 def collector @collector end |
#handler ⇒ Object
Returns the value of attribute handler.
19 20 21 |
# File 'lib/droonga/single_step_definition.rb', line 19 def handler @handler end |
#inputs ⇒ Object
Returns the value of attribute inputs.
22 23 24 |
# File 'lib/droonga/single_step_definition.rb', line 22 def inputs @inputs end |
#name ⇒ Object
Returns the value of attribute name.
18 19 20 |
# File 'lib/droonga/single_step_definition.rb', line 18 def name @name end |
#output ⇒ Object
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
21 22 23 |
# File 'lib/droonga/single_step_definition.rb', line 21 def write=(value) @write = value end |
Instance Method Details
#collector_class ⇒ Object
43 44 45 |
# File 'lib/droonga/single_step_definition.rb', line 43 def collector_class resolve_class(@collector) end |
#handler_class ⇒ Object
39 40 41 |
# File 'lib/droonga/single_step_definition.rb', line 39 def handler_class resolve_class(@handler) end |
#write? ⇒ Boolean
35 36 37 |
# File 'lib/droonga/single_step_definition.rb', line 35 def write? @write end |