Module: Bgem::Output::Ext::Common
- Included in:
- Bgem::Output::Exts::ERB, Bgem::Output::Exts::RB
- Defined in:
- lib/bgem.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#dir ⇒ Object
readonly
Returns the value of attribute dir.
-
#file_extension ⇒ Object
readonly
Returns the value of attribute file_extension.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
186 187 188 |
# File 'lib/bgem.rb', line 186 def code @code end |
#dir ⇒ Object (readonly)
Returns the value of attribute dir.
186 187 188 |
# File 'lib/bgem.rb', line 186 def dir @dir end |
#file_extension ⇒ Object (readonly)
Returns the value of attribute file_extension.
186 187 188 |
# File 'lib/bgem.rb', line 186 def file_extension @file_extension end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
186 187 188 |
# File 'lib/bgem.rb', line 186 def name @name end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
186 187 188 |
# File 'lib/bgem.rb', line 186 def type @type end |
Instance Method Details
#ext ⇒ Object
188 189 190 |
# File 'lib/bgem.rb', line 188 def ext file_extension end |
#initialize(**kwargs) ⇒ Object
176 177 178 179 180 181 182 183 184 |
# File 'lib/bgem.rb', line 176 def initialize **kwargs @file_extension = kwargs[:file_extension] @type = kwargs[:type] @name = kwargs[:name] @dir = kwargs[:dir] @code = kwargs[:code] setup end |
#setup ⇒ Object
192 193 |
# File 'lib/bgem.rb', line 192 def setup end |