Class: Lono::Blueprint::Meta
- Inherits:
-
Object
- Object
- Lono::Blueprint::Meta
- Extended by:
- Memoist
- Defined in:
- lib/lono/blueprint/meta.rb
Instance Method Summary collapse
- #auto_camelize?(target_section) ⇒ Boolean
-
#initialize(blueprint) ⇒ Meta
constructor
A new instance of Meta.
- #jadespec ⇒ Object
Constructor Details
#initialize(blueprint) ⇒ Meta
Returns a new instance of Meta.
7 8 9 |
# File 'lib/lono/blueprint/meta.rb', line 7 def initialize(blueprint) @blueprint = blueprint end |
Instance Method Details
#auto_camelize?(target_section) ⇒ Boolean
16 17 18 19 20 21 22 23 24 25 26 27 28 |
# File 'lib/lono/blueprint/meta.rb', line 16 def auto_camelize?(target_section) auto_camelize = jadespec.auto_camelize # auto_camelize.nil? for backward compatibility return true if auto_camelize.nil? || auto_camelize == true if auto_camelize == "except_resource" return target_section != "resource" end if auto_camelize.is_a?(Array) auto_camelize.include?(target_section) end end |
#jadespec ⇒ Object
11 12 13 |
# File 'lib/lono/blueprint/meta.rb', line 11 def jadespec Lono::Finder::Blueprint.find(@blueprint) end |