Module: OReflect

Defined in:
lib/oreflect.rb,
lib/oreflect/error.rb,
lib/oreflect/param.rb,
lib/oreflect/action.rb,
lib/oreflect/example.rb,
lib/oreflect/service.rb,
lib/oreflect/endpoint.rb,
lib/oreflect/accessors.rb

Defined Under Namespace

Modules: Accessors Classes: Action, Endpoint, Error, Example, Param, Service

Class Method Summary collapse

Class Method Details

.load_file(filepath) ⇒ Object



16
17
18
# File 'lib/oreflect.rb', line 16

def load_file(filepath)
  class_eval File.read(filepath)
end

.service(&block) ⇒ Object



12
13
14
# File 'lib/oreflect.rb', line 12

def service(&block)
  Service.new(&block)
end