class Bridgetown::Drops::BridgetownDrop
Public Class Methods
global()
click to toggle source
# File lib/bridgetown-core/drops/bridgetown_drop.rb, line 7 def global @global ||= BridgetownDrop.new end
Public Instance Methods
code_name()
click to toggle source
# File lib/bridgetown-core/drops/bridgetown_drop.rb, line 16 def code_name Bridgetown::CODE_NAME end
environment()
click to toggle source
# File lib/bridgetown-core/drops/bridgetown_drop.rb, line 20 def environment Bridgetown.environment end
to_h()
click to toggle source
# File lib/bridgetown-core/drops/bridgetown_drop.rb, line 24 def to_h @to_h ||= { "version" => version, "code_name" => code_name, "environment" => environment, } end
to_json(state = nil)
click to toggle source
# File lib/bridgetown-core/drops/bridgetown_drop.rb, line 32 def to_json(state = nil) JSON.generate(to_h, state) end
version()
click to toggle source
# File lib/bridgetown-core/drops/bridgetown_drop.rb, line 12 def version Bridgetown::VERSION end