class Bogy::Handler
Abstract class for handlers (FileHandler
, HashHandler
…) Handler
is object, which can work with certain data type (string, YAML file and etc.) and convert it to Ruby hash
Public Instance Methods
hash()
click to toggle source
# File lib/bogy/handler.rb, line 10 def hash @hash ||= load @hash = {} if @hash.nil? @hash end
load()
click to toggle source
Abstract method Used to convert raw YAML data from specified format to Ruby hash
# File lib/bogy/handler.rb, line 21 def load; end