Class: Trocla::Formats::Base
- Inherits:
-
Object
- Object
- Trocla::Formats::Base
show all
- Defined in:
- lib/trocla/formats.rb
Direct Known Subclasses
Bcrypt, Md5crypt, Mysql, Pgsql, Plain, Sha1, Sha256crypt, Sha512crypt, Ssha, Sshkey, X509
Instance Attribute Summary collapse
Class Method Summary
collapse
Instance Method Summary
collapse
Constructor Details
#initialize(trocla) ⇒ Base
Returns a new instance of Base.
5
6
7
|
# File 'lib/trocla/formats.rb', line 5
def initialize(trocla)
@trocla = trocla
end
|
Instance Attribute Details
#trocla ⇒ Object
Returns the value of attribute trocla.
4
5
6
|
# File 'lib/trocla/formats.rb', line 4
def trocla
@trocla
end
|
Class Method Details
.expensive(is_expensive) ⇒ Object
15
16
17
|
# File 'lib/trocla/formats.rb', line 15
def expensive(is_expensive)
@expensive = is_expensive
end
|
.expensive? ⇒ Boolean
18
19
20
|
# File 'lib/trocla/formats.rb', line 18
def expensive?
@expensive == true
end
|
Instance Method Details
#expensive? ⇒ Boolean
11
12
13
|
# File 'lib/trocla/formats.rb', line 11
def expensive?
self.class.expensive?
end
|
#render(output, render_options = {}) ⇒ Object
8
9
10
|
# File 'lib/trocla/formats.rb', line 8
def render(output,render_options={})
output
end
|