module ROM::Files::Plugins::Schema::Shebang::DSL

@api private

Public Instance Methods

shebang(name = NAME, inline = TYPE, type: inline) click to toggle source

Sets non-default shebang attribute

@example Set custom attribute name

schema do
  use :shebang
  shebang :shebang
end

@example Set custom type

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

@api public

# 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