class Jekyll::Minibundle::AssetFileDrop
Constants
- KEYS
Public Class Methods
new(file)
click to toggle source
Calls superclass method
# File lib/jekyll/minibundle/asset_file_drop.rb 18 def initialize(file) 19 super() 20 @file = file 21 end
Public Instance Methods
inspect()
click to toggle source
# File lib/jekyll/minibundle/asset_file_drop.rb 39 def inspect 40 require 'json' 41 JSON.pretty_generate(to_h) 42 end
key?(key)
click to toggle source
# File lib/jekyll/minibundle/asset_file_drop.rb 23 def key?(key) 24 respond_to?(key) 25 end
keys()
click to toggle source
# File lib/jekyll/minibundle/asset_file_drop.rb 27 def keys 28 KEYS 29 end
to_h()
click to toggle source
# File lib/jekyll/minibundle/asset_file_drop.rb 31 def to_h 32 keys.each_with_object({}) do |key, acc| 33 acc[key] = self[key] 34 end 35 end
Also aliased as: to_hash