Class: Flowcation::Block
- Inherits:
-
Object
- Object
- Flowcation::Block
- Defined in:
- lib/flowcation/block.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
-
#xpath ⇒ Object
readonly
Returns the value of attribute xpath.
Instance Method Summary collapse
-
#initialize(name, options = {}) ⇒ Block
constructor
A new instance of Block.
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, ={}) @name, @type, @xpath = name, (['substitute']||'content'), ['xpath'] end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
3 4 5 |
# File 'lib/flowcation/block.rb', line 3 def name @name end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
3 4 5 |
# File 'lib/flowcation/block.rb', line 3 def type @type end |
#xpath ⇒ Object (readonly)
Returns the value of attribute xpath.
3 4 5 |
# File 'lib/flowcation/block.rb', line 3 def xpath @xpath end |