class Core::Define::Definition
- public
Attributes
constant[R]
- public
location[R]
- public
name[R]
- public
namespace[R]
- public
Public Class Methods
new(*namespace, name, location: nil)
click to toggle source
# File lib/core/define/definition.rb, line 10 def initialize(*namespace, name, location: nil) @name = name.to_sym @namespace = namespace.map(&:to_sym).freeze @location = location.freeze @constant = build_constant.freeze end
Private Instance Methods
build_constant()
click to toggle source
# File lib/core/define/definition.rb, line 33 def build_constant (@namespace + [@name]).map { |part| Utils.camelize(part) }.join("::") end