Class: Brainstem::ApiDocs::Sinks::ControllerPresenterMultifileSink

Inherits:
AbstractSink
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/brainstem/api_docs/sinks/controller_presenter_multifile_sink.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Concerns::Optional

#initialize

Instance Attribute Details

#atlasObject

Returns the value of attribute atlas.



27
28
29
# File 'lib/brainstem/api_docs/sinks/controller_presenter_multifile_sink.rb', line 27

def atlas
  @atlas
end

#formatObject

Returns the value of attribute format.



27
28
29
# File 'lib/brainstem/api_docs/sinks/controller_presenter_multifile_sink.rb', line 27

def format
  @format
end

#write_method=(value) ⇒ Object

Sets the attribute write_method

Parameters:

  • value

    the value to set the attribute write_method to.



24
25
26
# File 'lib/brainstem/api_docs/sinks/controller_presenter_multifile_sink.rb', line 24

def write_method=(value)
  @write_method = value
end

#write_path=(value) ⇒ Object

Sets the attribute write_path

Parameters:

  • value

    the value to set the attribute write_path to.



24
25
26
# File 'lib/brainstem/api_docs/sinks/controller_presenter_multifile_sink.rb', line 24

def write_path=(value)
  @write_path = value
end

Instance Method Details

#<<(atlas) ⇒ Object



13
14
15
16
17
18
# File 'lib/brainstem/api_docs/sinks/controller_presenter_multifile_sink.rb', line 13

def <<(atlas)
  self.atlas = atlas

  write_controller_files
  write_presenter_files
end

#valid_optionsObject



20
21
22
# File 'lib/brainstem/api_docs/sinks/controller_presenter_multifile_sink.rb', line 20

def valid_options
  super | [ :write_method, :format, :write_path ]
end