Module: ROM::Roda::Plugin::InstanceMethods

Defined in:
lib/rom/roda/plugin.rb

Instance Method Summary collapse

Instance Method Details

#command(name, environment = nil) ⇒ Object



59
60
61
# File 'lib/rom/roda/plugin.rb', line 59

def command(name, environment = nil)
  rom(environment).command(name)
end

#relation(name, environment = nil) ⇒ Object



55
56
57
# File 'lib/rom/roda/plugin.rb', line 55

def relation(name, environment = nil)
  rom(environment).relation(name)
end

#rom(environment = nil) ⇒ Object



51
52
53
# File 'lib/rom/roda/plugin.rb', line 51

def rom(environment = nil)
  self.class.rom(environment)
end