Sha256: a01ff310ffc8c6fa3279f30b498d49efd1625c769a85bf28061cc90740f473c3

Contents?: true

Size: 622 Bytes

Versions: 6

Compression:

Stored size: 622 Bytes

Contents

module HaveAPI::Fs::Components
  class ActionMeta < Directory
    component :action_meta
    
    def initialize(action_dir, *args)
      super(*args)
      @action_dir = action_dir
    end

    def setup
      super
      
      children[:input] = [MetaInput, @action_dir, bound: true]
      children[:output] = [MetaOutput, @action_dir, :global, bound: true]
    end

    def contents
      super + %w(output)
    end

    def output=(data)
      children[:output].data = data
    end

    def values
      children[:input].values
    end

    def title
      'Input/output global metadata parameters'
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

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