Method: RbST#initialize
- Defined in:
- lib/rbst.rb
#initialize(*args) ⇒ RbST
Takes a string or file path plus any additional options and creates a new converter object.
39 40 41 42 43 |
# File 'lib/rbst.rb', line 39 def initialize(*args) target = args.shift @target = File.exists?(target) ? File.read(target) : target rescue target = args end |