class Drumknott::Keys
Attributes
key[R]
name[R]
pages[R]
Public Class Methods
call(arguments)
click to toggle source
# File lib/drumknott/keys.rb, line 4 def self.call(arguments) new(arguments).call end
new(arguments)
click to toggle source
# File lib/drumknott/keys.rb, line 8 def initialize(arguments) @name, @key, @pages, _ignored = *arguments end
Public Instance Methods
call()
click to toggle source
# File lib/drumknott/keys.rb, line 12 def call File.write ".drumknott", JSON.generate( "name" => name, "key" => key, "pages" => Drumknott::IncludePages.call(pages) ) end