Class: Wombat::DSL::Property

Inherits:
Object
  • Object
show all
Defined in:
lib/wombat/dsl/property.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, *args, &block) ⇒ Property

Returns a new instance of Property.



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

def initialize(name, *args, &block)
  @wombat_property_name = name
  @wombat_property_selector = args[0]
  @wombat_property_format = args[1] || :text
  @wombat_property_namespaces = args[2]
  @callback = block
end

Instance Attribute Details

#callbackObject

Returns the value of attribute callback.



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

def callback
  @callback
end

#wombat_property_formatObject

Returns the value of attribute wombat_property_format.



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

def wombat_property_format
  @wombat_property_format
end

#wombat_property_nameObject

Returns the value of attribute wombat_property_name.



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

def wombat_property_name
  @wombat_property_name
end

#wombat_property_namespacesObject

Returns the value of attribute wombat_property_namespaces.



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

def wombat_property_namespaces
  @wombat_property_namespaces
end

#wombat_property_selectorObject

Returns the value of attribute wombat_property_selector.



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

def wombat_property_selector
  @wombat_property_selector
end

Instance Method Details

#formatObject



22
23
24
# File 'lib/wombat/dsl/property.rb', line 22

def format
  @wombat_property_format
end

#namespacesObject



18
19
20
# File 'lib/wombat/dsl/property.rb', line 18

def namespaces
  @wombat_property_namespaces
end

#selectorObject



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

def selector
  @wombat_property_selector
end