Class: Andromeda::Kit::FileReader
- Inherits:
-
Plan
- Object
- Impl::ConnectorBase
- Impl::ProtoPlan
- Plan
- Andromeda::Kit::FileReader
- Defined in:
- lib/andromeda/kit.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#mode ⇒ Object
readonly
Returns the value of attribute mode.
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Attributes inherited from Plan
#error_level, #log, #marker, #nick, #trace_enter, #trace_exit
Attributes inherited from Impl::ProtoPlan
Instance Method Summary collapse
- #data_tag(name, key, val, tags_in) ⇒ Object
- #init_mode ⇒ Object
-
#initialize(config = {}) ⇒ FileReader
constructor
A new instance of FileReader.
Methods inherited from Plan
#initialize_copy, #pool, #tap, #to_short_s
Methods inherited from Impl::ProtoPlan
#>>, #current_name, #current_scope, #data_key, #data_val, #dest, #entry, #init_guide, #initialize_copy, #key_label, #key_spot, #map_data, #mute, name_spot, #post_data, #post_to, #public_spot, #selects?, #signal_name?, signal_names, #signal_names, signal_spot, spot_attr, #spot_attr_name?, #spot_attr_names, spot_attr_names, spot_meth, #spot_meth_name?, spot_meth_names, #spot_meth_names, #spot_name?, #spot_names, spot_names, #tags, #to_short_s, #via
Methods included from Impl::To_S
Methods inherited from Impl::ConnectorBase
Constructor Details
#initialize(config = {}) ⇒ FileReader
Returns a new instance of FileReader.
136 137 138 139 |
# File 'lib/andromeda/kit.rb', line 136 def initialize(config = {}) super config @mode ||= init_mode end |
Instance Attribute Details
#mode ⇒ Object (readonly)
Returns the value of attribute mode.
134 135 136 |
# File 'lib/andromeda/kit.rb', line 134 def mode @mode end |
#path ⇒ Object (readonly)
Returns the value of attribute path.
133 134 135 |
# File 'lib/andromeda/kit.rb', line 133 def path @path end |
Instance Method Details
#data_tag(name, key, val, tags_in) ⇒ Object
141 142 143 144 145 146 |
# File 'lib/andromeda/kit.rb', line 141 def data_tag(name, key, val, ) = super [:first] = val.first rescue 0 [:last] = val.last rescue -1 end |
#init_mode ⇒ Object
148 |
# File 'lib/andromeda/kit.rb', line 148 def init_mode ; 'r' end |