Class: SvgDocument::Group
- Inherits:
-
Base
show all
- Defined in:
- lib/gamebox/core/svg_document.rb
Instance Attribute Summary
Attributes inherited from Base
#node
Instance Method Summary
collapse
Methods inherited from Base
#game_class, #game_handle, #initialize, #visible?
#translation
Instance Method Details
#group(opts = {}) ⇒ Object
102
103
104
|
# File 'lib/gamebox/core/svg_document.rb', line 102
def group(opts={})
groups(opts).first
end
|
#groups(opts = {}) ⇒ Object
98
99
100
|
# File 'lib/gamebox/core/svg_document.rb', line 98
def groups(opts={})
inst_from_xpath "g", Group, opts
end
|
#image(opts = {}) ⇒ Object
94
95
96
|
# File 'lib/gamebox/core/svg_document.rb', line 94
def image(opts={})
images(opts).first
end
|
#images(opts = {}) ⇒ Object
90
91
92
|
# File 'lib/gamebox/core/svg_document.rb', line 90
def images(opts={})
inst_from_xpath "image", Image, opts
end
|
#path(opts = {}) ⇒ Object
78
79
80
|
# File 'lib/gamebox/core/svg_document.rb', line 78
def path(opts={})
paths(opts).first
end
|
#paths(opts = {}) ⇒ Object
74
75
76
|
# File 'lib/gamebox/core/svg_document.rb', line 74
def paths(opts={})
inst_from_xpath "path", Path, opts
end
|
#rect(opts = {}) ⇒ Object
86
87
88
|
# File 'lib/gamebox/core/svg_document.rb', line 86
def rect(opts={})
rects(opts).first
end
|
#rects(opts = {}) ⇒ Object
82
83
84
|
# File 'lib/gamebox/core/svg_document.rb', line 82
def rects(opts={})
inst_from_xpath "rect", Rectangle, opts
end
|