Module: ROM::Files::Plugins::Schema::Shebang::DSL Private

Defined in:
lib/rom/files/plugins/schema/shebang.rb

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

Instance Method Summary collapse

Instance Method Details

#shebang(name = NAME, inline = TYPE, type: inline) ⇒ Object

Sets non-default shebang attribute

Examples:

Set custom attribute name

schema do
  use :shebang
  shebang :shebang
end

Set custom type

schema do
  use :shebang
  shebang type: Types::JSON
end


67
68
69
70
71
72
73
# File 'lib/rom/files/plugins/schema/shebang.rb', line 67

def shebang(name = NAME, inline = TYPE, type: inline)
  options = plugin_options(:shebang)
  options[:name] = name
  options[:type] = type

  self
end