Sha256: 773a0fde4cbe170537d345bd55837be466b0808c3eade91ddd8839376b88d527
Contents?: true
Size: 635 Bytes
Versions: 3
Compression:
Stored size: 635 Bytes
Contents
module Stack class Configuration attr_accessor :source, :target attr_accessor :server_port, :server_watch def initialize(hash = nil) self.from_hash(hash) end def from_hash(hash) if (hash != nil) @source = hash[:source] @target = hash[:target] @server_port = hash[:server][:port] @server_watch = hash[:server][:watch] end end def to_hash { :source => self.source, :target => self.target, :server => { :port => self.server_port, :watch => self.server_watch } } end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
stack-0.0.9 | lib/stack/configuration.rb |
stack-0.0.8 | lib/stack/configuration.rb |
stack-0.0.7 | lib/stack/configuration.rb |