Sha256: d29b457cc81e42f4e4183e07b058811207ffd7275edfa948e6cf972778ca4b90
Contents?: true
Size: 236 Bytes
Versions: 2
Compression:
Stored size: 236 Bytes
Contents
# frozen_string_literal: true module Staticky class ViewContext def initialize(resource) @resource = resource end def root? @resource.root? end def current_path @resource.url end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
staticky-0.1.1 | lib/staticky/view_context.rb |
staticky-0.1.0 | lib/staticky/view_context.rb |