Class: Lono::Configset::Registry
- Inherits:
-
Object
- Object
- Lono::Configset::Registry
- Defined in:
- lib/lono/configset/registry.rb
Instance Attribute Summary collapse
-
#args ⇒ Object
readonly
Returns the value of attribute args.
-
#caller_line ⇒ Object
Returns the value of attribute caller_line.
-
#depends_on ⇒ Object
Returns the value of attribute depends_on.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#parent ⇒ Object
Returns the value of attribute parent.
Instance Method Summary collapse
- #gem_options ⇒ Object
-
#initialize(args, options) ⇒ Registry
constructor
A new instance of Registry.
- #name ⇒ Object
- #resource ⇒ Object
- #resource=(v) ⇒ Object
- #vars ⇒ Object
Constructor Details
#initialize(args, options) ⇒ Registry
Returns a new instance of Registry.
5 6 7 |
# File 'lib/lono/configset/registry.rb', line 5 def initialize(args, ) @args, @options = args, end |
Instance Attribute Details
#args ⇒ Object (readonly)
Returns the value of attribute args.
3 4 5 |
# File 'lib/lono/configset/registry.rb', line 3 def args @args end |
#caller_line ⇒ Object
Returns the value of attribute caller_line.
4 5 6 |
# File 'lib/lono/configset/registry.rb', line 4 def caller_line @caller_line end |
#depends_on ⇒ Object
Returns the value of attribute depends_on.
4 5 6 |
# File 'lib/lono/configset/registry.rb', line 4 def depends_on @depends_on end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
3 4 5 |
# File 'lib/lono/configset/registry.rb', line 3 def @options end |
#parent ⇒ Object
Returns the value of attribute parent.
4 5 6 |
# File 'lib/lono/configset/registry.rb', line 4 def parent @parent end |
Instance Method Details
#gem_options ⇒ Object
21 22 23 24 25 26 27 28 |
# File 'lib/lono/configset/registry.rb', line 21 def = @options.dup # Delete special options that is not supported by bundler Gemfile .delete(:repo) .delete(:resource) .delete(:vars) end |
#name ⇒ Object
9 10 11 |
# File 'lib/lono/configset/registry.rb', line 9 def name @args.first end |
#resource ⇒ Object
13 14 15 |
# File 'lib/lono/configset/registry.rb', line 13 def resource @options[:resource] end |
#resource=(v) ⇒ Object
17 18 19 |
# File 'lib/lono/configset/registry.rb', line 17 def resource=(v) @options[:resource] = v end |
#vars ⇒ Object
30 31 32 |
# File 'lib/lono/configset/registry.rb', line 30 def vars [:vars] || {} end |