class Mapper::Resource
A Resource
class for a route. Basically just a way to hold data for a route
Attributes
enabled[RW]
name[RW]
path[RW]
route_name[RW]
Public Class Methods
new(options={})
click to toggle source
# File lib/middleman-router/mapper.rb, line 7 def initialize(options={}) @name = options[:name] @route_name = options[:route_name] @path = options[:path] @enabled = options[:enabled] end
Public Instance Methods
enabled?()
click to toggle source
# File lib/middleman-router/mapper.rb, line 14 def enabled? @enabled == true end