Sha256: 55cbbb4b2c85e819dd4379733da1285fc03ff1f21e7a4321201ebe32016e7619
Contents?: true
Size: 424 Bytes
Versions: 30
Compression:
Stored size: 424 Bytes
Contents
module Betterdocs::Dsl::Naming def initialize(*) super @options ||= {} @below_path = [] end attr_reader :options def path @below_path + [ public_name ] end def below_path(path) dup.instance_eval do @below_path = path self end end def public_name @options[:as] || name end def full_name path * '.' end def nesting_name @below_path * '.' end end
Version data entries
30 entries across 30 versions & 1 rubygems