Class: Flowcation::Block

Inherits:
Object
  • Object
show all
Defined in:
lib/flowcation/block.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, options = {}) ⇒ Block

Returns a new instance of Block.



4
5
6
# File 'lib/flowcation/block.rb', line 4

def initialize(name, options={})
  @name, @type, @xpath = name, (options['substitute']||'content'), options['xpath']
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



3
4
5
# File 'lib/flowcation/block.rb', line 3

def name
  @name
end

#typeObject (readonly)

Returns the value of attribute type.



3
4
5
# File 'lib/flowcation/block.rb', line 3

def type
  @type
end

#xpathObject (readonly)

Returns the value of attribute xpath.



3
4
5
# File 'lib/flowcation/block.rb', line 3

def xpath
  @xpath
end