class Subroutine::Outputs::Configuration

Constants

DEFAULT_OPTIONS

Attributes

output_name[R]

Public Class Methods

from(field_name, options) click to toggle source
# File lib/subroutine/outputs/configuration.rb, line 9
def self.from(field_name, options)
  case options
  when Subroutine::Outputs::Configuration
    options.class.new(field_name, options)
  else
    new(field_name, options)
  end
end
new(output_name, config) click to toggle source
Calls superclass method
# File lib/subroutine/outputs/configuration.rb, line 22
def initialize(output_name, config)
  @output_name = output_name
  super(DEFAULT_OPTIONS.merge(config))
end

Public Instance Methods

inspect() click to toggle source
# File lib/subroutine/outputs/configuration.rb, line 33
def inspect
  "#<#{self.class}:#{object_id} name=#{output_name} config=#{config.inspect}>"
end
required?() click to toggle source
# File lib/subroutine/outputs/configuration.rb, line 29
def required?
  !!config[:required]
end