class Redoxed::Model::Outputs

Public Class Methods

new() click to toggle source
# File lib/redoxed/model/outputs.rb, line 34
def initialize
  @outputs = []
end

Public Instance Methods

<<(output) click to toggle source
# File lib/redoxed/model/outputs.rb, line 12
def <<(output)
  @outputs << output
end
all() click to toggle source
# File lib/redoxed/model/outputs.rb, line 20
def all
  @outputs
end
to_cfg() click to toggle source
# File lib/redoxed/model/outputs.rb, line 4
def to_cfg
  type_to_str(nil)
end
type(type) click to toggle source
# File lib/redoxed/model/outputs.rb, line 24
def type(type)
  @outputs.select { |out| out.type == type }
end
type_to_str(want_type) click to toggle source
# File lib/redoxed/model/outputs.rb, line 8
def type_to_str(want_type)
  type(want_type).map { |out| out }.join
end
types() click to toggle source
# File lib/redoxed/model/outputs.rb, line 28
def types
  @outputs.map { |out| out.type }.uniq.compact
end
unshift(output) click to toggle source
# File lib/redoxed/model/outputs.rb, line 16
def unshift(output)
  @outputs.unshift output
end