Class: Operator
- Inherits:
-
Object
- Object
- Operator
- Defined in:
- lib/rack/blogengine/operator.rb
Overview
Operator Class loads in UserOperators on initialize Methods defined in this Class are “Default Operators”
Instance Method Summary collapse
-
#initialize(target) ⇒ Operator
constructor
A new instance of Operator.
Constructor Details
#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 |