Class: SettingCrazy::Namespace
- Inherits:
-
Object
- Object
- SettingCrazy::Namespace
- Defined in:
- lib/settingcrazy/namespace.rb
Instance Attribute Summary collapse
-
#template ⇒ Object
readonly
Returns the value of attribute template.
Instance Method Summary collapse
-
#initialize(name, options = {}) ⇒ Namespace
constructor
A new instance of Namespace.
- #name ⇒ Object
Constructor Details
#initialize(name, options = {}) ⇒ Namespace
Returns a new instance of Namespace.
5 6 7 8 |
# File 'lib/settingcrazy/namespace.rb', line 5 def initialize(name, = {}) @name = name.to_sym @template = [:template] end |
Instance Attribute Details
#template ⇒ Object (readonly)
Returns the value of attribute template.
3 4 5 |
# File 'lib/settingcrazy/namespace.rb', line 3 def template @template end |
Instance Method Details
#name ⇒ Object
10 11 12 |
# File 'lib/settingcrazy/namespace.rb', line 10 def name @name.to_s end |