Class: Crystal::Workspace
- Defined in:
- lib/crystal/conveyor/workspace.rb
Instance Method Summary collapse
- #[]=(k, v) ⇒ Object
- #inspect ⇒ Object
- #params ⇒ Object
- #params=(v) ⇒ Object
- #params? ⇒ Boolean
- #set_without_params ⇒ Object
Instance Method Details
#[]=(k, v) ⇒ Object
12 13 14 15 16 17 18 |
# File 'lib/crystal/conveyor/workspace.rb', line 12 def []= k, v if k.to_s == 'params' self.params = v else set_without_params k, v end end |
#inspect ⇒ Object
28 29 30 31 32 33 34 |
# File 'lib/crystal/conveyor/workspace.rb', line 28 def inspect h = {} each{|k, v| h[k.to_s] = v} h['env'] = "..." if h.include? 'env' h['request'] = "..." if h.include? 'request' h.inspect end |
#params ⇒ Object
3 4 5 |
# File 'lib/crystal/conveyor/workspace.rb', line 3 def params self[:params] || Params.new end |
#params=(v) ⇒ Object
20 21 22 23 24 25 26 |
# File 'lib/crystal/conveyor/workspace.rb', line 20 def params= v if v.is_a? Params set_without_params :params, v else set_without_params :params, Params.new(v) end end |
#params? ⇒ Boolean
7 8 9 |
# File 'lib/crystal/conveyor/workspace.rb', line 7 def params? !!params end |
#set_without_params ⇒ Object
11 |
# File 'lib/crystal/conveyor/workspace.rb', line 11 alias_method :set_without_params, :[]= |