Method: Cosmos::Protocol#initialize
- Defined in:
- lib/cosmos/interfaces/protocols/protocol.rb
#initialize(allow_empty_data = nil) ⇒ Protocol
to be passed down to later Protocols (instead of returning :STOP). Can be true, false, or nil, where nil is interpreted as true unless the Protocol is the last Protocol of the chain.
33 34 35 36 37 |
# File 'lib/cosmos/interfaces/protocols/protocol.rb', line 33 def initialize(allow_empty_data = nil) @interface = nil @allow_empty_data = ConfigParser.handle_true_false_nil(allow_empty_data) reset() end |