Method: Operator#initialize
- Defined in:
- lib/rack/blogengine/operator.rb
#initialize(target) ⇒ Operator
Returns a new instance of Operator.
8 9 10 11 12 13 |
# File 'lib/rack/blogengine/operator.rb', line 8 def initialize(target) target = Pathname.new("#{target}").realpath.to_s Dir["#{target}/operator/*.rb"].each { |file| require file } extend UserOperator # load user operators end |