Sha256: f1147c2ef057177f00181b9b2981a3856aea7edd9f10e5c4530be14c4c91cfd3

Contents?: true

Size: 679 Bytes

Versions: 24

Compression:

Stored size: 679 Bytes

Contents

class Rad::Conveyors::Workspace < OpenObject
  def params
    self[:params] || ::Rad::Conveyors::Params.new
  end

  def params?
    !!params
  end
        
  alias_method :set_without_params, :[]=
  def []= k, v      
    if k.to_s == 'params'
      self.params = v
    else
      set_without_params k, v
    end
  end  

  def params= v
    if v.is_a? ::Rad::Conveyors::Params
      set_without_params :params, v
    else
      set_without_params :params, ::Rad::Conveyors::Params.new(v)
    end
  end
    
  def inspect
    h = {}
    each{|k, v| h[k] = v}
    h['env'] = "..." if h.include? 'env'      
    h['request'] = "..." if h.include? 'request'
    h.inspect
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
rad_core-0.2.6 lib/rad/conveyors/_workspace.rb
rad_core-0.2.5 lib/rad/conveyors/_workspace.rb
rad_core-0.2.4 lib/rad/conveyors/_workspace.rb
rad_core-0.2.3 lib/rad/conveyors/_workspace.rb
rad_core-0.2.2 lib/rad/conveyors/_workspace.rb
rad_core-0.2.1 lib/rad/conveyors/_workspace.rb
rad_core-0.2.0 lib/rad/conveyors/_workspace.rb
rad_core-0.0.30 lib/rad/conveyors/_workspace.rb
rad_core-0.0.29 lib/rad/conveyors/_workspace.rb
rad_core-0.0.28 lib/rad/conveyors/_workspace.rb
rad_core-0.0.27 lib/rad/conveyors/_workspace.rb
rad_core-0.0.26 lib/rad/conveyors/_workspace.rb
rad_core-0.0.25 lib/rad/conveyors/_workspace.rb
rad_core-0.0.24 lib/rad/conveyors/_workspace.rb
rad_core-0.0.23 lib/rad/conveyors/_workspace.rb
rad_core-0.0.22 lib/rad/conveyors/_workspace.rb
rad_core-0.0.21 lib/rad/conveyors/_workspace.rb
rad_core-0.0.20 lib/rad/conveyors/_workspace.rb
rad_core-0.0.19 lib/rad/conveyors/_workspace.rb
rad_core-0.0.18 lib/rad/conveyors/_workspace.rb