lib/peeky/api.rb
# Build a {Peeky::ClassInfo} structure based around a
# ruby class instance.
#
# ClassInfo stores information about the instance of a
# class that is passed in including methods, attr_accessors
# attr_readers and attr_writers.
#
# @param instance [Object] instance of class to gather information about (required)
# @param lazy [TrueClass] lazy load method and parameter information, laze: is optional, defaults to true
Build a {Peeky::ClassInfo} structure based around a
ruby class instance.

ClassInfo stores information about the instance of a
class that is passed in including methods, attr_accessors
attr_readers and attr_writers.
Build a { Peeky :: ClassInfo } structure based around a ruby class instance . ClassInfo stores information about the instance of a class that is passed in including methods attr_accessors attr_readers and attr_writers .
def build_class_info(instance, lazy: true)
      ci = Peeky::ClassInfo.new(instance)
      ci.load unless lazy
      ci
    end
def build_class_info ( instance , lazy : true ) ci = Peeky :: ClassInfo . new ( instance ) ci . load unless lazy ci end
Build a {Peeky::ClassInfo} structure based around a
ruby class instance.
Build a { Peeky :: ClassInfo } structure based around a ruby class instance .
instance
instance of class to gather information about (required)
instance of class to gather information about ( required )
lazy
lazy load method and parameter information, laze: is optional, defaults to true
lazy load method and parameter information laze : is optional defaults to true
true