Class: PiFi::Streams
Instance Method Summary collapse
- #all ⇒ Object
-
#initialize(path_pub, path_priv = "") ⇒ Streams
constructor
A new instance of Streams.
- #pub ⇒ Object
Methods included from Utils
Constructor Details
#initialize(path_pub, path_priv = "") ⇒ Streams
Returns a new instance of Streams.
7 8 9 10 11 |
# File 'lib/pifi/lib/streams.rb', line 7 def initialize(path_pub, path_priv="") @path_pub = path_pub @path_priv = path_priv check_paths end |
Instance Method Details
#all ⇒ Object
13 14 15 |
# File 'lib/pifi/lib/streams.rb', line 13 def all @all ||= pub.merge(priv) end |
#pub ⇒ Object
17 18 19 |
# File 'lib/pifi/lib/streams.rb', line 17 def pub @pub ||= file_to_hash(@path_pub) end |