Class: Wombat::DSL::Headers

Inherits:
PropertyGroup show all
Defined in:
lib/wombat/dsl/headers.rb

Instance Attribute Summary collapse

Attributes inherited from PropertyGroup

#wombat_property_name

Instance Method Summary collapse

Methods inherited from PropertyGroup

#method_missing, #to_ary, #wombat_property_namespaces

Constructor Details

#initialize(name, selector) ⇒ Headers

Returns a new instance of Headers.



6
7
8
9
10
# File 'lib/wombat/dsl/headers.rb', line 6

def initialize(name, selector)
  @wombat_property_selector = selector
  
  super(name)
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Wombat::DSL::PropertyGroup

Instance Attribute Details

#wombat_property_selectorObject

Returns the value of attribute wombat_property_selector.



4
5
6
# File 'lib/wombat/dsl/headers.rb', line 4

def wombat_property_selector
  @wombat_property_selector
end

Instance Method Details

#wombat_property_formatObject

So that Property::Locators::Headers can identify this class as an headers property.



14
15
16
# File 'lib/wombat/dsl/headers.rb', line 14

def wombat_property_format
  :headers
end