Module: Signable::Concerns::Embed::ClassMethods

Defined in:
lib/signable/concerns/embed.rb

Instance Method Summary collapse

Instance Method Details

#embed(name, options = {}) ⇒ Object



11
12
13
# File 'lib/signable/concerns/embed.rb', line 11

def embed(name, options = {})
  embeds << Signable::Model::Embed.new(name, options.merge({ prefix: prefix }))
end

#embedsObject



15
16
17
# File 'lib/signable/concerns/embed.rb', line 15

def embeds
  @embeds ||= []
end