Class: Crystal::Meta
- Inherits:
-
Object
- Object
- Crystal::Meta
- Defined in:
- lib/crystal/meta.rb
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Meta
constructor
A new instance of Meta.
- #store(new_options) ⇒ Object
- #tag_by_name(name) ⇒ Object
- #tags_by_pattern(pattern = //) ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ Meta
Returns a new instance of Meta.
3 4 5 |
# File 'lib/crystal/meta.rb', line 3 def initialize( = {}) @options = HashWithStringifyKeys.new() end |
Instance Method Details
#store(new_options) ⇒ Object
7 8 9 |
# File 'lib/crystal/meta.rb', line 7 def store() .deep_merge!(HashWithStringifyKeys.new()) end |
#tag_by_name(name) ⇒ Object
11 12 13 |
# File 'lib/crystal/meta.rb', line 11 def tag_by_name(name) .find_by_name(name) end |
#tags_by_pattern(pattern = //) ⇒ Object
15 16 17 |
# File 'lib/crystal/meta.rb', line 15 def (pattern = //) .filter(pattern) end |