Class: Fabulator::Lib::Action

Inherits:
Structural show all
Defined in:
lib/fabulator/lib/action.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Structural

#accepts_structural?, accepts_structural?, #compile_xml, contained_in, contains, element, #initialize, structurals

Constructor Details

This class inherits a constructor from Fabulator::Structural

Instance Attribute Details

#attributesObject

Returns the value of attribute attributes.



7
8
9
# File 'lib/fabulator/lib/action.rb', line 7

def attributes
  @attributes
end

#namespaceObject

Returns the value of attribute namespace.



8
9
10
# File 'lib/fabulator/lib/action.rb', line 8

def namespace
  @namespace
end

Instance Method Details

#compile_action(e, context) ⇒ Object



20
21
22
23
24
25
26
# File 'lib/fabulator/lib/action.rb', line 20

def compile_action(e, context)
  ret = nil
  context.with(e) do |ctx|
    ret = ActionRef.new([ e.namespaces.namespace.href, e.name ], ctx, ctx.compile_actions(e))
  end
  ret
end

#has_select?Boolean

Returns:

  • (Boolean)


28
29
30
# File 'lib/fabulator/lib/action.rb', line 28

def has_select?
  @has_select
end