Class: Chronicles::Methods

Inherits:
Array
  • Object
show all
Defined in:
lib/chronicles/methods.rb

Overview

Array of object methods selected by options

Instance Method Summary collapse

Constructor Details

#initialize(object, **options) ⇒ Methods

Returns a new instance of Methods.



10
11
12
13
14
# File 'lib/chronicles/methods.rb', line 10

def initialize(object, **options)
  @object  = object
  @options = options
  super(whitelist.empty? ? list : list & whitelist)
end