Method: Chitin::PVC#initialize
- Defined in:
- lib/chitin/commands/ruby.rb
#initialize(*arr, &block) ⇒ PVC
Returns a new instance of PVC.
10 11 12 13 14 15 16 17 18 |
# File 'lib/chitin/commands/ruby.rb', line 10 def initialize(*arr, &block) super() raise "Need at least a method name" unless [String, Symbol].include? arr.first.class @chains = [] latest = [*arr] latest << block if block @chains << latest end |