Sha256: e215952582068563e537831adb6944c1dc2e3ef83762b0367610d4ee1a39da3a

Contents?: true

Size: 275 Bytes

Versions: 7

Compression:

Stored size: 275 Bytes

Contents

module HaveAPI::Fs::Components
  class ResourceId < Parameter
    def initialize(resource_dir, *args)
      super(*args)

      @resource_dir = resource_dir
    end

    def write(str)
      super(str)

      @resource_dir.replace_association(@name, value)
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
haveapi-fs-0.11.0 lib/haveapi/fs/components/resource_id.rb
haveapi-fs-0.10.0 lib/haveapi/fs/components/resource_id.rb
haveapi-fs-0.9.0 lib/haveapi/fs/components/resource_id.rb
haveapi-fs-0.8.0 lib/haveapi/fs/components/resource_id.rb
haveapi-fs-0.7.1 lib/haveapi/fs/components/resource_id.rb
haveapi-fs-0.7.0 lib/haveapi/fs/components/resource_id.rb
haveapi-fs-0.1.0 lib/haveapi/fs/components/resource_id.rb