Class: HaveAPI::Fs::Components::ActionMeta
Constant Summary
Constants included
from Help
Help::SEARCH_PATH
Instance Attribute Summary
#atime, #context, #ctime, #mtime
Instance Method Summary
collapse
Methods inherited from Directory
#directory?
Methods included from Help
find!, included
#abspath, #bound=, #bound?, children_reader, component, #directory?, #executable?, #file?, #find, inherited, #invalid?, #invalidate, #parent, #path, #readable?, #reset, #times, #unsaved?, #use, #writable?
Constructor Details
#initialize(action_dir, *args) ⇒ ActionMeta
Returns a new instance of ActionMeta.
5
6
7
8
|
# File 'lib/haveapi/fs/components/action_meta.rb', line 5
def initialize(action_dir, *args)
super(*args)
@action_dir = action_dir
end
|
Instance Method Details
#contents ⇒ Object
17
18
19
|
# File 'lib/haveapi/fs/components/action_meta.rb', line 17
def contents
super + %w(output)
end
|
#output=(data) ⇒ Object
21
22
23
|
# File 'lib/haveapi/fs/components/action_meta.rb', line 21
def output=(data)
children[:output].data = data
end
|
#setup ⇒ Object
10
11
12
13
14
15
|
# File 'lib/haveapi/fs/components/action_meta.rb', line 10
def setup
super
children[:input] = [MetaInput, @action_dir, bound: true]
children[:output] = [MetaOutput, @action_dir, :global, bound: true]
end
|
#title ⇒ Object
29
30
31
|
# File 'lib/haveapi/fs/components/action_meta.rb', line 29
def title
'Input/output global metadata parameters'
end
|
#values ⇒ Object
25
26
27
|
# File 'lib/haveapi/fs/components/action_meta.rb', line 25
def values
children[:input].values
end
|