Class: OpenGraphPlus::Namespace::Plus
- Defined in:
- lib/opengraphplus/namespace.rb
Instance Attribute Summary collapse
-
#selector ⇒ Object
Returns the value of attribute selector.
-
#style ⇒ Object
Returns the value of attribute style.
Instance Method Summary collapse
Methods inherited from Base
#each, #render_in, #tag, #update
Instance Attribute Details
#selector ⇒ Object
Returns the value of attribute selector.
52 53 54 |
# File 'lib/opengraphplus/namespace.rb', line 52 def selector @selector end |
#style ⇒ Object
Returns the value of attribute style.
52 53 54 |
# File 'lib/opengraphplus/namespace.rb', line 52 def style @style end |
Instance Method Details
#tags ⇒ Object
67 68 69 70 71 72 73 |
# File 'lib/opengraphplus/namespace.rb', line 67 def [ tag("og:plus:selector", selector), tag("og:plus:style", style), *. ].compact end |
#viewport ⇒ Object
63 64 65 |
# File 'lib/opengraphplus/namespace.rb', line 63 def @viewport ||= Viewport.new end |