class Punchblock::Component::Input::Grammar
Constants
- GRXML_CONTENT_TYPE
Public Instance Methods
inherit(xml_node)
click to toggle source
Calls superclass method
# File lib/punchblock/component/input.rb, line 95 def inherit(xml_node) self.value = xml_node.content.strip super end
rayo_attributes()
click to toggle source
# File lib/punchblock/component/input.rb, line 100 def rayo_attributes { 'url' => url, 'content-type' => content_type } end
rayo_children(root)
click to toggle source
# File lib/punchblock/component/input.rb, line 107 def rayo_children(root) root.cdata value if value end
Private Instance Methods
grxml?()
click to toggle source
# File lib/punchblock/component/input.rb, line 113 def grxml? content_type == GRXML_CONTENT_TYPE end